diff options
author | lrjball <50599110+lrjball@users.noreply.github.com> | 2020-05-28 18:51:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 18:51:44 (GMT) |
commit | d9c1f1991969e99791de75b2bc935e6445bc5dcd (patch) | |
tree | 5730bb4eeac351cdca9c2e4660c85763a08d21bc /.travis.yml | |
parent | cfc6ce4d40f2f01314b7e283fb972a7bb3ed3faa (diff) | |
download | cpython-d9c1f1991969e99791de75b2bc935e6445bc5dcd.zip cpython-d9c1f1991969e99791de75b2bc935e6445bc5dcd.tar.gz cpython-d9c1f1991969e99791de75b2bc935e6445bc5dcd.tar.bz2 |
bpo-40474: Updated coverage.yml to better report coverage stats (#19851)
Currently modules which are imported early are misreported in coverage. A fix is documented in the devguide, but the fix wasn't being used in CI.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 133385f..5d57150 100644 --- a/.travis.yml +++ b/.travis.yml @@ -89,11 +89,13 @@ matrix: - ./venv/bin/python -m pip install -U coverage - ./venv/bin/python -m pip install -r Misc/requirements-test.txt - ./venv/bin/python -m test.pythoninfo + - export PYTHONPATH=`find venv -name fullcoverage` script: # Skip tests that re-run the entire test suite. - 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 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. + - export PYTHONPATH= - source ./venv/bin/activate - bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml - name: "Test code coverage (C)" |