Adjust copyright headers to 2017 (#965)
[stockfish] / .travis.yml
index a0673b85c6dae3d15270376079061a035059e564..87a3e7dc7437f095d30cddd265080cf2c61ceed9 100644 (file)
@@ -47,8 +47,9 @@ script:
   #
   # checking bench for various build types
   #
   #
   # 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 HEAD | grep "\b[Bb]ench[ :]\+[0-9]\{7\}" | head -n 1 | sed "s/[^0-9]*\([0-9][0-9]*\)/\1/g" > 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
   - echo "Reference bench:" $benchref
   # verify against reference
   - make clean && make ARCH=x86-64 build > /dev/null && ../tests/signature.sh $benchref