Skip to content

Commit bdec99b

Browse files
author
Simon Hofmann
committed
Added xvfb-run to linux tests
1 parent 127025b commit bdec99b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@ 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 sleep 3; fi
4948

5049
install: true
5150

5251
script:
5352
- npm run patch && npm i
5453
- if [[ $TRAVIS_OS_NAME = "windows" ]]; then npm run build:release:win; else npm run build:release; fi
55-
- npm test
54+
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then xvfb-run npm test; else npm test; fi
5655

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

0 commit comments

Comments
 (0)