Skip to content

Commit 0d96eb2

Browse files
author
Simon Hofmann
committed
Updated xvfb usage to example in Travis docs
1 parent bdec99b commit 0d96eb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ before_install:
4545
before_script:
4646
# Start xvfb
4747
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export DISPLAY=:99.0; fi
48+
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
49+
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sleep 3; fi
4850

4951
install: true
5052

5153
script:
5254
- npm run patch && npm i
5355
- if [[ $TRAVIS_OS_NAME = "windows" ]]; then npm run build:release:win; else npm run build:release; fi
54-
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then xvfb-run npm test; else npm test; fi
56+
- npm test
5557

5658
before_deploy:
5759
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null

0 commit comments

Comments
 (0)