]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)
authorZachary Ware <zachary.ware@gmail.com>
Fri, 20 Jul 2018 02:51:42 +0000 (21:51 -0500)
committerGitHub <noreply@github.com>
Fri, 20 Jul 2018 02:51:42 +0000 (21:51 -0500)
(cherry picked from commit b12112b5ba608cdd7a0962a6b18cad4fe58b46e6)

.travis.yml

index 695b5a7d81a569b546c4bbb4608cff3371cdf375..7e1c2ef8756ed19a81fa745379d23bc295404660 100644 (file)
@@ -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