forked from patternfly/patternfly-sass
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
51 lines (51 loc) · 1.2 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
sudo: false
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: ruby
cache:
bundler: true
directories:
- bower_components
rvm:
- 2.3.0
before_script:
- npm install bower
- bundle exec rake compile
- bundle exec rake serve > /dev/null 2>&1 &
- export PID=$!
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 5 # give xvfb some time to start
- "wget https://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip"
- "unzip chromedriver_linux64.zip -d chromedriver"
script:
- bundle exec rake spec
after_failure:
- bundle exec rake upload
after_script:
- kill -2 $PID
- sleep 2
env:
matrix:
- "BROWSER=chrome TOLERANCE=0.000001"
- "BROWSER=firefox TOLERANCE=0.000001"
- "BROWSER=chrome TOLERANCE=0.000000"
- "BROWSER=firefox TOLERANCE=0.000000"
matrix:
fast_finish: true
allow_failures:
- env: BROWSER=firefox TOLERANCE=0.000000
- env: BROWSER=chrome TOLERANCE=0.000000
- env: BROWSER=chrome TOLERANCE=0.000001
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/1184f6f283ba9823f662
on_success: change
on_failure: always
on_start: never