From 7f44ae2d3f97319c4754094306d9a1aeaaebe108 Mon Sep 17 00:00:00 2001 From: mbilker Date: Sat, 21 Nov 2015 23:04:51 -0500 Subject: [PATCH] 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 --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: