forked from beardedeagle/mnesiac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (37 loc) · 821 Bytes
/
.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
sudo: false
language: 'elixir'
elixir:
- '1.7'
- '1.8.1'
otp_release:
- '20.3'
- '21.2.6'
git:
quiet: true
env:
- 'PLT_DIR=$HOME/.plt'
cache:
directories:
- '_build'
- 'deps'
- '$PLT_DIR'
before_script:
- 'mkdir -p $PLT_DIR'
- 'mix deps.get --force'
- 'mix deps.compile --force'
- 'mix compile --force'
- 'travis_wait 30 mix dialyzer --plt'
- 'MIX_ENV=test mix deps.get --force'
- 'MIX_ENV=test mix deps.compile --force'
script:
- 'mix credo --strict --all'
- 'MIX_ENV=test mix compile --force --warnings-as-errors'
- 'MIX_ENV=test mix format --check-formatted --dry-run'
- 'mix purge.db'
- 'MIX_ENV=test mix coveralls.json --no-start'
after_success:
- 'bash <(curl -s https://codecov.io/bash)'
- 'mix inch.report'
notifications:
email: