File tree 1 file changed +7
-2
lines changed
1 file changed +7
-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.
@@ -70,6 +74,7 @@ matrix:
70
74
apt :
71
75
packages :
72
76
- lcov
77
+ - xvfb
73
78
before_script :
74
79
- ./configure
75
80
- make coverage -s -j4
@@ -79,7 +84,7 @@ matrix:
79
84
- ./venv/bin/python -m test.pythoninfo
80
85
script :
81
86
# Skip tests that re-run the entire test suite.
82
- - ./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
87
+ - 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
83
88
after_script : # Probably should be after_success once test suite updated to run under coverage.py.
84
89
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
85
90
- source ./venv/bin/activate
@@ -150,7 +155,7 @@ script:
150
155
# Check that all symbols exported by libpython start with "Py" or "_Py"
151
156
- make smelly
152
157
# `-r -w` implicitly provided through `make buildbottest`.
153
- - make buildbottest TESTOPTS="-j4 -uall,-cpu"
158
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then XVFB_RUN=xvfb-run; fi; $XVFB_RUN make buildbottest TESTOPTS="-j4 -uall,-cpu"
154
159
155
160
notifications :
156
161
email : false
You can’t perform that action at this time.
0 commit comments