Skip to content

Commit

Permalink
ignore _compat module both for old and new checkout
Browse files Browse the repository at this point in the history
if we don't ignore _compat for the new checkout, we will get a big
decrease in code coverage
  • Loading branch information
tomato42 committed Dec 8, 2020
1 parent cf57b04 commit bb8254a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Expand Up @@ -117,17 +117,16 @@ script:
- |
if [[ $INSTRUMENTAL && $TRAVIS_PULL_REQUEST != "false" ]]; then
git checkout $PR_FIRST^
files="$(ls src/ecdsa/test*.py)"
instrumental -t ecdsa -i 'test.*|.*_version|.*_compat' `which pytest` $files
instrumental -t ecdsa -i 'test.*|.*_version|.*_compat' `which pytest` src/ecdsa/test*.py
instrumental -f .instrumental.cov -s
instrumental -f .instrumental.cov -s | python diff-instrumental.py --save .diff-instrumental
git checkout $BRANCH
instrumental -t ecdsa -i 'test.*|.*_version' `which pytest` src/ecdsa
instrumental -t ecdsa -i 'test.*|.*_version|.*_compat' `which pytest` src/ecdsa/test*.py
instrumental -f .instrumental.cov -sr
fi
- |
if [[ $INSTRUMENTAL && $TRAVIS_PULL_REQUEST == "false" ]]; then
instrumental -t ecdsa -i 'test.*|.*_version' `which pytest` src/ecdsa
instrumental -t ecdsa -i 'test.*|.*_version|.*_compat' `which pytest` src/ecdsa
instrumental -f .instrumental.cov -s
# just log the values when merging
instrumental -f .instrumental.cov -s | python diff-instrumental.py
Expand Down

0 comments on commit bb8254a

Please sign in to comment.