Skip to content

Commit 0f12c33

Browse files
committed
Use xvfb as a service.
1 parent 688304f commit 0f12c33

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.travis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,26 @@ cache: bundler
44

55
matrix:
66
include:
7-
- rvm: 2.3.1
7+
- rvm: 2.6.2
88
script:
99
- bundle exec danger
10-
- rvm: 2.3.1
10+
services:
11+
- xvfb
12+
- rvm: 2.6.2
1113
env: DATABASE_ADAPTER=activerecord
1214
services:
15+
- xvfb
1316
- postgresql
14-
- rvm: 2.3.1
17+
- rvm: 2.6.2
1518
env: DATABASE_ADAPTER=mongoid
1619
services:
20+
- xvfb
1721
- mongodb
1822

1923
addons:
2024
firefox: 54.0
2125

2226
before_install:
23-
- export DISPLAY=:99.0
24-
- sh -e /etc/init.d/xvfb start
2527
- wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
2628
- mkdir geckodriver
2729
- tar -xzf geckodriver-v0.18.0-linux64.tar.gz -C geckodriver

0 commit comments

Comments
 (0)