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

Zachary Ware webhook-mailer at python.org
Thu Jul 19 22:51:45 EDT 2018


https://github.com/python/cpython/commit/c5bc6e477e659e95ab8837cea85c1e52ae916e02
commit: c5bc6e477e659e95ab8837cea85c1e52ae916e02
branch: 2.7
author: Zachary Ware <zachary.ware at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-07-19T21:51:42-05:00
summary:

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

(cherry picked from commit b12112b5ba608cdd7a0962a6b18cad4fe58b46e6)

files:
M .travis.yml

diff --git a/.travis.yml b/.travis.yml
index 695b5a7d81a5..7e1c2ef8756e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,6 +31,10 @@ matrix:
       # compiler here and the other to run the coverage build. Clang is preferred
       # in this instance for its better error messages.
       env: TESTING=cpython
+      addons:
+        apt:
+          packages:
+            - xvfb
     - os: linux
       language: python
       python: 2.7
@@ -91,7 +95,7 @@ script:
   # Check that all symbols exported by libpython start with "Py" or "_Py"
   - make smelly
   # `-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:
   email: false



More information about the Python-checkins mailing list