Skip to content

Commit 00effc9

Browse files
committed
Only start Xvfb on Linux.
1 parent efd4ec6 commit 00effc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ before_install:
4242

4343
before_script:
4444
# Start xvfb
45-
- export DISPLAY=:99.0
46-
- sh -e /etc/init.d/xvfb start
45+
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export DISPLAY=:99.0; fi
46+
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
4747

4848
install:
4949
- npm install

0 commit comments

Comments
 (0)