fix(travis): only run Xvfb on Linux

Noticed in my Travis build that the build failed on OS X
because its missing the Xvfb startup files present on Ubuntu
This commit is contained in:
mbilker 2015-11-21 23:04:51 -05:00
parent 40d67b5632
commit 7f44ae2d3f

View file

@ -29,10 +29,6 @@ matrix:
sudo: false
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- echo $CC
- echo $CXX
@ -43,6 +39,10 @@ install:
- nvm install $NODE_VERSION
- nvm use --delete-prefix $NODE_VERSION
before_script:
- [ "${TRAVIS_OS_NAME}" == "linux" ] && export DISPLAY=:99.0
- [ "${TRAVIS_OS_NAME}" == "linux" ] && sh -e /etc/init.d/xvfb start
script: script/cibuild
addons: