diff --git a/.travis.yml b/.travis.yml index 5ad7a660a..0a33dd863 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,8 +40,10 @@ install: - 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 + - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then + export DISPLAY=:99.0; + sh -e /etc/init.d/xvfb start; + fi script: script/cibuild