Skip to content

Commit bb8254a

Browse files
committed
ignore _compat module both for old and new checkout
if we don't ignore _compat for the new checkout, we will get a big decrease in code coverage
1 parent cf57b04 commit bb8254a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,16 @@ script:
117117
- |
118118
if [[ $INSTRUMENTAL && $TRAVIS_PULL_REQUEST != "false" ]]; then
119119
git checkout $PR_FIRST^
120-
files="$(ls src/ecdsa/test*.py)"
121-
instrumental -t ecdsa -i 'test.*|.*_version|.*_compat' `which pytest` $files
120+
instrumental -t ecdsa -i 'test.*|.*_version|.*_compat' `which pytest` src/ecdsa/test*.py
122121
instrumental -f .instrumental.cov -s
123122
instrumental -f .instrumental.cov -s | python diff-instrumental.py --save .diff-instrumental
124123
git checkout $BRANCH
125-
instrumental -t ecdsa -i 'test.*|.*_version' `which pytest` src/ecdsa
124+
instrumental -t ecdsa -i 'test.*|.*_version|.*_compat' `which pytest` src/ecdsa/test*.py
126125
instrumental -f .instrumental.cov -sr
127126
fi
128127
- |
129128
if [[ $INSTRUMENTAL && $TRAVIS_PULL_REQUEST == "false" ]]; then
130-
instrumental -t ecdsa -i 'test.*|.*_version' `which pytest` src/ecdsa
129+
instrumental -t ecdsa -i 'test.*|.*_version|.*_compat' `which pytest` src/ecdsa
131130
instrumental -f .instrumental.cov -s
132131
# just log the values when merging
133132
instrumental -f .instrumental.cov -s | python diff-instrumental.py

0 commit comments

Comments
 (0)