Skip to content

Commit fc710ee

Browse files
authored
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.
1 parent e0bec69 commit fc710ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ matrix:
8282
packages:
8383
- xvfb
8484
before_script:
85+
- |
86+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]
87+
then
88+
echo "Don't run Python coverage on pull requests."
89+
exit
90+
fi
8591
- ./configure
8692
- make -j4
8793
# Need a venv that can parse covered code.
@@ -109,6 +115,12 @@ matrix:
109115
- lcov
110116
- xvfb
111117
before_script:
118+
- |
119+
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]
120+
then
121+
echo "Don't run C coverage on pull requests."
122+
exit
123+
fi
112124
- ./configure
113125
script:
114126
- xvfb-run make -j4 coverage-report

0 commit comments

Comments
 (0)