@@ -60,7 +60,7 @@ before_install:
6060 TRAVIS_COMMIT_RANGE=$PR_FIRST^..$TRAVIS_COMMIT
6161 fi
6262 # sanity check current commit
63- - git rev-parse HEAD
63+ - BRANCH=$( git rev-parse HEAD)
6464 - echo "TRAVIS_COMMIT_RANGE=$TRAVIS_COMMIT_RANGE"
6565 - git fetch origin master:refs/remotes/origin/master
6666
@@ -78,16 +78,15 @@ install:
7878script :
7979 - if [[ $TOX_ENV ]]; then tox -e $TOX_ENV; fi
8080 - tox -e speed
81- - cp diff-instrumental.py diff-instrumental-2.py
8281 - |
8382 if [[ $INSTRUMENTAL && $TRAVIS_PULL_REQUEST != "false" ]]; then
8483 git checkout $PR_FIRST^
8584 # exclude the super slow test_malformed_sigs.py, until #127 is merged
8685 files="$(ls src/ecdsa/test*.py | grep -v test_malformed_sigs.py)"
8786 instrumental -t ecdsa -i 'test.*|.*_version' `which pytest` $files
8887 instrumental -f .instrumental.cov -s
89- instrumental -f .instrumental.cov -s | python diff-instrumental-2 .py --save .diff-instrumental
90- git checkout $TRAVIS_COMMIT
88+ instrumental -f .instrumental.cov -s | python diff-instrumental.py --save .diff-instrumental
89+ git checkout $BRANCH
9190 instrumental -t ecdsa -i 'test.*|.*_version' `which pytest` $files
9291 instrumental -f .instrumental.cov -sr
9392 fi
@@ -98,11 +97,11 @@ script:
9897 instrumental -t ecdsa -i 'test.*|.*_version' `which pytest` $files
9998 instrumental -f .instrumental.cov -s
10099 # just log the values when merging
101- instrumental -f .instrumental.cov -s | python diff-instrumental-2 .py
100+ instrumental -f .instrumental.cov -s | python diff-instrumental.py
102101 fi
103102 - |
104103 if [[ $INSTRUMENTAL && $TRAVIS_PULL_REQUEST != "false" ]]; then
105- instrumental -f .instrumental.cov -s | python diff-instrumental-2 .py --read .diff-instrumental --fail-under 70 --max-difference -0.1
104+ instrumental -f .instrumental.cov -s | python diff-instrumental.py --read .diff-instrumental --fail-under 70 --max-difference -0.1
106105 fi
107106after_success :
108107 - if [[ -z $INSTRUMENTAL ]]; then coveralls; fi
0 commit comments