diff --git a/.travis.yml b/.travis.yml index a966a9f12..5ad7a660a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: