[2.7] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)

(cherry picked from commit b12112b5ba)
This commit is contained in:
Zachary Ware 2018-07-19 21:51:42 -05:00 committed by GitHub
parent 1fb24b6e83
commit c5bc6e477e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,10 @@ matrix:
# compiler here and the other to run the coverage build. Clang is preferred # compiler here and the other to run the coverage build. Clang is preferred
# in this instance for its better error messages. # in this instance for its better error messages.
env: TESTING=cpython env: TESTING=cpython
addons:
apt:
packages:
- xvfb
- os: linux - os: linux
language: python language: python
python: 2.7 python: 2.7
@ -91,7 +95,7 @@ script:
# Check that all symbols exported by libpython start with "Py" or "_Py" # Check that all symbols exported by libpython start with "Py" or "_Py"
- make smelly - make smelly
# `-r -w` implicitly provided through `make buildbottest`. # `-r -w` implicitly provided through `make buildbottest`.
- make buildbottest TESTOPTS="-j4 -uall,-cpu" - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then XVFB_RUN=xvfb-run; fi; $XVFB_RUN make buildbottest TESTOPTS="-j4 -uall,-cpu"
notifications: notifications:
email: false email: false