mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40993: Don't run Travis CI coverage on PRs (GH-20916)
C and Python coverage jobs of Travis CI are no longer run on pull
requests, only on branches like master.
(cherry picked from commit fc710ee266
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
097b8b6d52
commit
3cf809475a
1 changed files with 12 additions and 0 deletions
12
.travis.yml
12
.travis.yml
|
@ -82,6 +82,12 @@ matrix:
|
|||
packages:
|
||||
- xvfb
|
||||
before_script:
|
||||
- |
|
||||
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]
|
||||
then
|
||||
echo "Don't run Python coverage on pull requests."
|
||||
exit
|
||||
fi
|
||||
- ./configure
|
||||
- make -j4
|
||||
# Need a venv that can parse covered code.
|
||||
|
@ -107,6 +113,12 @@ matrix:
|
|||
- lcov
|
||||
- xvfb
|
||||
before_script:
|
||||
- |
|
||||
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]
|
||||
then
|
||||
echo "Don't run C coverage on pull requests."
|
||||
exit
|
||||
fi
|
||||
- ./configure
|
||||
script:
|
||||
- xvfb-run make -j4 coverage-report
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue