-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
47 lines (44 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: elixir
cache:
directories:
- deps
- _build/dev
elixir:
- 1.7.4
otp_release:
- 21.2
env:
global:
- MIX_ENV=test
matrix:
include:
# Run tests
- otp_release: 21.2
elixir: 1.7.4
- otp_release: 20.2
elixir: 1.6.3
- otp_release: 20.0
elixir: 1.4.5
# Run docs and coveralls reporint in a separate VM
- script:
- "mix deps.get"
- after_script:
# Submit docs coverage to Inch CI
- "mix inch.report"
# Submit code coverage report to Coveralls
- "mix coveralls.travis"
# Run Dialyzer in a separate VM
- script:
# Install dependencies
- "mix deps.get"
- "MIX_ENV=dev mix dialyzer --unmatched_returns --error_handling --race_conditions --underspecs"
# Run Linters in a separate VM
- script:
# Make sure code is formatted
- "mix format --check-formatted"
# Run static code analysis
- "mix credo"
script:
- "mix deps.get"
# Run all tests except pending ones
- "mix test --exclude pending --trace"