mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
Start xvfb for Trusty and use the service for Xenial
This commit is contained in:
parent
ea60256b3b
commit
d7476e15db
|
@ -31,6 +31,7 @@ matrix:
|
||||||
dist: trusty
|
dist: trusty
|
||||||
- python: "2.7_with_system_site_packages" # For PyQt4
|
- python: "2.7_with_system_site_packages" # For PyQt4
|
||||||
name: "2.7_with_system_site_packages Xenial"
|
name: "2.7_with_system_site_packages Xenial"
|
||||||
|
services: xvfb
|
||||||
- python: "2.7_with_system_site_packages" # For PyQt4
|
- python: "2.7_with_system_site_packages" # For PyQt4
|
||||||
name: "2.7_with_system_site_packages Trusty"
|
name: "2.7_with_system_site_packages Trusty"
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
@ -78,7 +79,7 @@ before_install:
|
||||||
before_script:
|
before_script:
|
||||||
# Qt needs a display for some of the tests, and it's only run on the system site packages install
|
# Qt needs a display for some of the tests, and it's only run on the system site packages install
|
||||||
- |
|
- |
|
||||||
if [ "$TRAVIS_PYTHON_VERSION" == "2.7_with_system_site_packages" ]; then
|
if [ "$TRAVIS_JOB_NAME" == "2.7_with_system_site_packages Trusty" ]; then
|
||||||
export DISPLAY=:99.0
|
export DISPLAY=:99.0
|
||||||
sh -e /etc/init.d/xvfb start
|
sh -e /etc/init.d/xvfb start
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user