]> git.sesse.net Git - stockfish/blobdiff - .travis.yml
Travis CI: Make all warnings into errors
[stockfish] / .travis.yml
index c42badd4897fce2a362a6f0c3023299db82277d8..8586921a887527f70fae0a0f63373e6476831afa 100644 (file)
@@ -50,10 +50,11 @@ script:
   - echo "Reference bench:" $benchref
   #
   # Verify bench number against various builds
-  - make clean && make -j2 ARCH=x86-64 optimize=no debug=yes build > /dev/null && ../tests/signature.sh $benchref
-  - make clean && make -j2 ARCH=x86-32 optimize=no debug=yes build > /dev/null && ../tests/signature.sh $benchref
-  - make clean && make -j2 ARCH=x86-32 build > /dev/null && ../tests/signature.sh $benchref
-  - make clean && make -j2 ARCH=x86-64 build > /dev/null && ../tests/signature.sh $benchref
+  - export CXXFLAGS=-Werror
+  - make clean && make -j2 ARCH=x86-64 optimize=no debug=yes build && ../tests/signature.sh $benchref
+  - make clean && make -j2 ARCH=x86-32 optimize=no debug=yes build && ../tests/signature.sh $benchref
+  - make clean && make -j2 ARCH=x86-32 build && ../tests/signature.sh $benchref
+  - make clean && make -j2 ARCH=x86-64 build && ../tests/signature.sh $benchref
   #
   # Check perft and reproducible search
   - ../tests/perft.sh
@@ -63,6 +64,7 @@ script:
   #
   - export CXXFLAGS=-O1
   - if [ -x "$(command -v valgrind )" ]; then make clean && make -j2 ARCH=x86-64 debug=yes optimize=no build > /dev/null && ../tests/instrumented.sh --valgrind; fi
+  - if [ -x "$(command -v valgrind )" ]; then ../tests/instrumented.sh --valgrind-thread; fi
   #
   # Sanitizer
   #