forked from elixir-wallaby/wallaby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (63 loc) · 2.27 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: elixir
elixir:
- 1.4.5
- 1.3.4
- 1.5.0
otp_release:
- 19.3
- 18.3
- 20.0
matrix:
exclude:
- elixir: 1.3.4
otp_release: 19.3
- elixir: 1.3.4
otp_release: 20.0
- elixir: 1.4.5
otp_release: 18.3
- elixir: 1.4.5
otp_release: 20.0
- elixir: 1.5.0
otp_release: 18.3
- elixir: 1.5.0
otp_release: 19.3
env:
- ""
- WALLABY_DRIVER=phantom
- WALLABY_DRIVER=chrome
- WALLABY_DRIVER=selenium WALLABY_SELENIUM_VERSION=3
- WALLABY_DRIVER=selenium WALLABY_SELENIUM_VERSION=2
# Run in bigger container so we don't run out of memory generating the plt
sudo: required
cache:
directories:
- _build
- deps
dist: trusty
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE`
- curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
- unzip chromedriver_linux64.zip
- sudo chmod +x chromedriver
- sudo mv chromedriver /usr/local/bin
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes
- sudo apt-get update
- sudo apt-get install google-chrome-beta
- sudo apt-get install libstdc++6-4.7-dev
- MIX_ENV=test mix compile --warnings-as-errors
- if [ -z ${WALLABY_DRIVER} ]; then travis_wait mix dialyzer --plt; fi # only run dialyzer for the env without drivers
- bash $TRAVIS_BUILD_DIR/test/tools/start_webdriver.sh
script:
- mix coveralls.travis
- if [ -z ${WALLABY_DRIVER} ]; then mix dialyzer --halt-exit-status; fi # only run dialyzer for the env without drivers
after_script:
- mix deps.get --only docs
- MIX_ENV=docs mix inch.report
before_install:
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
- "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
- "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
- "phantomjs --version"