File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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
118126notifications :
119127 email : false
You can’t perform that action at this time.
0 commit comments