Only start Xvfb for Qt builds

This commit is contained in:
Hugo 2019-01-15 11:37:17 +02:00
parent 811a6ae9f2
commit ea60256b3b

View File

@ -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:
- |