forked from binaryage/dirac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (29 loc) · 1.45 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
sudo: true
dist: trusty
language: clojure
before_install:
# - export DIRAC_LOG_LEVEL=debug
# - export DIRAC_CHROME_DRIVER_VERBOSE=1
#
# we need lein 2.5.3+ because of https://github.com/technomancy/leiningen/issues/1762
# update lein to latest, https://github.com/technomancy/leiningen/issues/2014#issuecomment-153829977
- yes y | sudo lein upgrade
# install xvfb (for chrome tests)
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# install "unstable" chrome for Google's PPA: http://www.tecmint.com/install-google-chrome-in-debian-ubuntu-linux-mint/
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get install google-chrome-unstable # want test against canary-like version
# http://blog.500tech.com/setting-up-travis-ci-to-run-tests-on-latest-google-chrome-version/
# - sudo apt-get update
# - sudo apt-get install -y libappindicator1 fonts-liberation
# - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# - sudo dpkg -i google-chrome*.deb
# install chrome driver
- wget https://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- mv chromedriver test/chromedriver
- export CHROME_DRIVER_PATH=`pwd`/test/chromedriver
script: scripts/test-all.sh