-
Notifications
You must be signed in to change notification settings - Fork 43
/
.travis.yml
44 lines (38 loc) · 892 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
38
39
40
41
42
43
44
language: elixir
dist: trusty
addons:
chrome: stable
install:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- npm install && node_modules/brunch/bin/brunch build --production
- mix compile
- mix phx.digest
before_install:
- sudo apt-get update
- sudo apt-get install chromium-chromedriver
elixir:
- 1.6.6
- 1.7.4
otp_release:
- 20.0
- 21.0
env:
- MIX_ENV=test
before_script:
- export PATH=$PATH:/usr/lib/chromium-browser/
- export DISPLAY=:99.0
- export TRAVIS=true
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
- nohup chromedriver &
- while sleep 5m; do echo "=====[ $SECONDS seconds, dialyzer still dialyzing... ]====="; done &
script: mix test && mix dialyzer --halt-exit-status
after_script:
- cd $TRAVIS_BUILD_DIR
- MIX_ENV=docs mix inch.report
cache:
directories:
- _build
- deps