Skip to content

Commit d319a95

Browse files
committed
Use xvfb service
The xvfb script doesn't work anymore on Travis starting with Xenial. A new 'xvfb' service has been introduced.
1 parent ca7cfcc commit d319a95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ addons:
99
- google-chrome-stable
1010
- google-chrome-beta
1111
- google-chrome-unstable
12+
services:
13+
- xvfb
1214
env:
1315
global:
1416
- DISPLAY=$(if [[ $TRAVIS_OS_NAME == "linux" ]]; then echo ':99.0'; fi)
@@ -26,8 +28,6 @@ before_install:
2628
- export NPM=${NODE%node}npm
2729
install:
2830
- $NPM install
29-
before_script:
30-
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
3131
script:
3232
- $NPM test
3333
- $NPM run coveralls

0 commit comments

Comments
 (0)