From ea60256b3b552097b09bf71165b6379f9d16eaeb Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 15 Jan 2019 11:37:17 +0200 Subject: [PATCH] Only start Xvfb for Qt builds --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f7cb5899c..407441c19 100644 --- a/.travis.yml +++ b/.travis.yml @@ -77,8 +77,11 @@ before_install: before_script: # Qt needs a display for some of the tests, and it's only run on the system site packages install - - "export DISPLAY=:99.0" - - "sh -e /etc/init.d/xvfb start" +- | + if [ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]; then + export DISPLAY=:99.0 + sh -e /etc/init.d/xvfb start + fi script: - |