X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=.travis.yml;h=ea635c8f9f3ae49fd1bf4b632afd41e7432f4faa;hp=017dc10bca2abf0f303fb7c9eb97a930fb04990b;hb=e18321f55a2f51a2bf1775200241381b63daf181;hpb=08d6465d90a1558c4dc4380aabe986bb7347c11e diff --git a/.travis.yml b/.travis.yml index 017dc10b..ea635c8f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: cpp +sudo: required +dist: trusty matrix: include: @@ -7,25 +9,25 @@ matrix: addons: apt: sources: ['ubuntu-toolchain-r-test'] - packages: ['g++-4.8'] + packages: ['g++-multilib', 'valgrind'] env: - - COMPILER=g++-4.8 + - COMPILER=g++ - COMP=gcc - os: linux compiler: clang addons: apt: - sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7'] - packages: ['clang-3.7'] + sources: ['ubuntu-toolchain-r-test'] + packages: ['clang', 'g++-multilib', 'valgrind'] env: - - COMPILER=clang++-3.7 + - COMPILER=clang++ - COMP=clang - os: osx compiler: gcc env: - - COMPILER=g++-4.8 + - COMPILER=g++ - COMP=gcc - os: osx @@ -47,3 +49,5 @@ script: - echo "Checking for same bench numbers..." - diff bench1 bench2 > result - test ! -s result + # if valgrind is available check the build is without error, reduce depth to speedup testing, but not too shallow to catch more cases. + - if [ -x "$(command -v valgrind )" ] ; then make clean && make ARCH=x86-64 debug=yes build && valgrind --error-exitcode=42 ./stockfish bench 128 1 10 default depth 1>/dev/null ; fi