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:
31
31
# compiler here and the other to run the coverage build. Clang is preferred
32
32
# in this instance for its better error messages.
33
33
env : TESTING=cpython
34
+ addons :
35
+ apt :
36
+ packages :
37
+ - xvfb
34
38
- os : linux
35
39
language : python
36
40
python : 3.6
@@ -46,6 +50,10 @@ matrix:
46
50
language : c
47
51
compiler : gcc
48
52
env : OPTIONAL=true
53
+ addons :
54
+ apt :
55
+ packages :
56
+ - xvfb
49
57
before_script :
50
58
- ./configure PYTHON_FOR_REGEN=python3
51
59
- make -s -j4
@@ -55,7 +63,7 @@ matrix:
55
63
- ./venv/bin/python -m test.pythoninfo
56
64
script :
57
65
# 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
59
67
after_script : # Probably should be after_success once test suite updated to run under coverage.py.
60
68
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
61
69
- source ./venv/bin/activate
@@ -113,7 +121,7 @@ script:
113
121
# Check that all symbols exported by libpython start with "Py" or "_Py"
114
122
- make smelly
115
123
# `-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"
117
125
118
126
notifications :
119
127
email : false
You can’t perform that action at this time.
0 commit comments