Skip to content

Commit c5bc6e4

Browse files
authored
[2.7] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)
(cherry picked from commit b12112b)
1 parent 1fb24b6 commit c5bc6e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
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: 2.7
@@ -91,7 +95,7 @@ script:
9195
# Check that all symbols exported by libpython start with "Py" or "_Py"
9296
- make smelly
9397
# `-r -w` implicitly provided through `make buildbottest`.
94-
- make buildbottest TESTOPTS="-j4 -uall,-cpu"
98+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then XVFB_RUN=xvfb-run; fi; $XVFB_RUN make buildbottest TESTOPTS="-j4 -uall,-cpu"
9599

96100
notifications:
97101
email: false

0 commit comments

Comments
 (0)