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 @@ -40,6 +40,10 @@ matrix:
40
40
# compiler here and the other to run the coverage build. Clang is preferred
41
41
# in this instance for its better error messages.
42
42
env : TESTING=cpython
43
+ addons :
44
+ apt :
45
+ packages :
46
+ - xvfb
43
47
- os : linux
44
48
language : python
45
49
# Build the docs against a stable version of Python so code bugs don't hold up doc-related PRs.
@@ -56,6 +60,10 @@ matrix:
56
60
language : c
57
61
compiler : gcc
58
62
env : OPTIONAL=true
63
+ addons :
64
+ apt :
65
+ packages :
66
+ - xvfb
59
67
before_script :
60
68
- ./configure
61
69
- make -s -j4
@@ -65,7 +73,7 @@ matrix:
65
73
- ./venv/bin/python -m test.pythoninfo
66
74
script :
67
75
# Skip tests that re-run the entire test suite.
68
- - ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures
76
+ - xvfb-run ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures
69
77
after_script : # Probably should be after_success once test suite updated to run under coverage.py.
70
78
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
71
79
- source ./venv/bin/activate
@@ -135,7 +143,7 @@ script:
135
143
# Check that all symbols exported by libpython start with "Py" or "_Py"
136
144
- make smelly
137
145
# `-r -w` implicitly provided through `make buildbottest`.
138
- - make buildbottest TESTOPTS="-j4 -uall,-cpu"
146
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then XVFB_RUN=xvfb-run; fi; $XVFB_RUN make buildbottest TESTOPTS="-j4 -uall,-cpu"
139
147
140
148
notifications :
141
149
email : false
You can’t perform that action at this time.
0 commit comments