Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87068ed

Browse files
GPHemsleymethane
authored andcommitted
bpo-36684: Split out gcc and test coverage builds (GH-13146)
The combined Python and C coverage test runs now exceed Travis's 50-minute time limit. Splitting them into separate runs gives more leeway. Also, adding branch coverage to Python testing and ensure that coverage is reported even if tests fail. (The primary builds are for tracking test failures.)
1 parent 26f55c2 commit 87068ed

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

.travis.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,22 +86,36 @@ matrix:
8686
addons:
8787
apt:
8888
packages:
89-
- lcov
9089
- xvfb
9190
before_script:
9291
- ./configure
93-
- make coverage -s -j4
92+
- make -j4
9493
# Need a venv that can parse covered code.
9594
- ./python -m venv venv
9695
- ./venv/bin/python -m pip install -U coverage
9796
- ./venv/bin/python -m test.pythoninfo
9897
script:
9998
# Skip tests that re-run the entire test suite.
100-
- 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
99+
- xvfb-run ./venv/bin/python -m coverage run --branch --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures || true
101100
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
102101
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
103102
- source ./venv/bin/activate
104-
- make coverage-lcov
103+
- bash <(curl -s https://codecov.io/bash)
104+
- os: linux
105+
language: c
106+
compiler: gcc
107+
env: OPTIONAL=true
108+
addons:
109+
apt:
110+
packages:
111+
- lcov
112+
- xvfb
113+
before_script:
114+
- ./configure
115+
script:
116+
- xvfb-run make -j4 coverage-report
117+
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
118+
- make pythoninfo
105119
- bash <(curl -s https://codecov.io/bash)
106120

107121

0 commit comments

Comments
 (0)