Skip to content

Commit

Permalink
Trevis CI: use commit bench number as a reference
Browse files Browse the repository at this point in the history
No functional change.
  • Loading branch information
mcostalba committed Jan 9, 2017
1 parent ba15781 commit 394e9cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -47,8 +47,9 @@ script:
#
# checking bench for various build types
#
# obtain reference
- make clean && make ARCH=x86-64 optimize=no debug=yes build > /dev/null && export benchref=$(../tests/signature.sh)
# obtain reference from git log
- git log | grep "\b[Bb]ench[ :]\+[0-9]\{7\}" | head -n 1 | sed -rn "s/[^0-9]*([0-9]+)/\1/p" > git_sig
- export benchref=$(cat git_sig)
- echo "Reference bench:" $benchref
# verify against reference
- make clean && make ARCH=x86-64 build > /dev/null && ../tests/signature.sh $benchref
Expand Down

0 comments on commit 394e9cd

Please sign in to comment.