Skip to content

Commit 226f064

Browse files
authored
[3.6] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)
(cherry picked from commit b12112b)
1 parent 2fe1c6b commit 226f064

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ matrix:
3131
# compiler here and the other to run the coverage build. Clang is preferred
3232
# in this instance for its better error messages.
3333
env: TESTING=cpython
34+
addons:
35+
apt:
36+
packages:
37+
- xvfb
3438
- os: linux
3539
language: python
3640
python: 3.6
@@ -46,6 +50,10 @@ matrix:
4650
language: c
4751
compiler: gcc
4852
env: OPTIONAL=true
53+
addons:
54+
apt:
55+
packages:
56+
- xvfb
4957
before_script:
5058
- ./configure PYTHON_FOR_REGEN=python3
5159
- make -s -j4
@@ -55,7 +63,7 @@ matrix:
5563
- ./venv/bin/python -m test.pythoninfo
5664
script:
5765
# Skip tests that re-run the entire test suite.
58-
- ./venv/bin/python -m coverage run --pylib -m test -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
66+
- xvfb-run ./venv/bin/python -m coverage run --pylib -m test -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn
5967
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
6068
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
6169
- source ./venv/bin/activate
@@ -113,7 +121,7 @@ script:
113121
# Check that all symbols exported by libpython start with "Py" or "_Py"
114122
- make smelly
115123
# `-r -w` implicitly provided through `make buildbottest`.
116-
- make buildbottest TESTOPTS="-j4 -uall,-cpu"
124+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then XVFB_RUN=xvfb-run; fi; $XVFB_RUN make buildbottest TESTOPTS="-j4 -uall,-cpu"
117125

118126
notifications:
119127
email: false

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy