diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2018-07-11 19:09:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 19:09:58 (GMT) |
commit | b12112b5ba608cdd7a0962a6b18cad4fe58b46e6 (patch) | |
tree | bd58f9940ac1f88adea1921c6471cb140506f5dd /.travis.yml | |
parent | 504373c59b48f1ea12132d515459022730db6047 (diff) | |
download | cpython-b12112b5ba608cdd7a0962a6b18cad4fe58b46e6.zip cpython-b12112b5ba608cdd7a0962a6b18cad4fe58b46e6.tar.gz cpython-b12112b5ba608cdd7a0962a6b18cad4fe58b46e6.tar.bz2 |
Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index beecff2..90989f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,6 +40,10 @@ matrix: # compiler here and the other to run the coverage build. Clang is preferred # in this instance for its better error messages. env: TESTING=cpython + addons: + apt: + packages: + - xvfb - os: linux language: python # Build the docs against a stable version of Python so code bugs don't hold up doc-related PRs. @@ -70,6 +74,7 @@ matrix: apt: packages: - lcov + - xvfb before_script: - ./configure - make coverage -s -j4 @@ -79,7 +84,7 @@ matrix: - ./venv/bin/python -m test.pythoninfo script: # Skip tests that re-run the entire test suite. - - ./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 + - 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 after_script: # Probably should be after_success once test suite updated to run under coverage.py. # Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files. - source ./venv/bin/activate @@ -150,7 +155,7 @@ script: # Check that all symbols exported by libpython start with "Py" or "_Py" - make smelly # `-r -w` implicitly provided through `make buildbottest`. - - make buildbottest TESTOPTS="-j4 -uall,-cpu" + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then XVFB_RUN=xvfb-run; fi; $XVFB_RUN make buildbottest TESTOPTS="-j4 -uall,-cpu" notifications: email: false |