Skip to content

Commit 80827c8

Browse files
Run formatter check only on the latest Elixir version
1 parent 3e80328 commit 80827c8

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: elixir
22
sudo: false
3-
script: MIX_ENV=test mix quality
3+
script:
4+
- if [[ `elixir -v` = *"1.9"* ]]; mix format --check-formatted; fi
5+
- credo --strict
6+
- mix test
47
matrix:
58
# Compatible versions are taken from
69
# https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp

mix.exs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ defmodule Facebook.Mixfile do
1010
elixir: "~> 1.0",
1111
description: description(),
1212
package: package(),
13-
aliases: aliases(),
1413
deps: deps(),
1514
source_url: "https://github.com/mweibel/facebook.ex"
1615
]
@@ -62,14 +61,4 @@ defmodule Facebook.Mixfile do
6261
{:ex_doc, ">= 0.19.2", only: :dev}
6362
]
6463
end
65-
66-
defp aliases do
67-
[
68-
quality: [
69-
"test",
70-
"format --check-formatted",
71-
"credo --strict"
72-
]
73-
]
74-
end
7564
end

0 commit comments

Comments
 (0)