From: Marco Costalba Date: Sun, 3 Sep 2017 07:25:02 +0000 (+0200) Subject: Travis CI: Make all warnings into errors X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=04eb87fd081c0a77d3a261b07cea4808d4ced9cc;p=fairystockfish.git Travis CI: Make all warnings into errors Compile with -Werror flag. To make debugging easier also show compile ourput. This flag is enabled only in Travis CI, not in the shipped Makefile becuase we can't test on every possible platform. --- diff --git a/.travis.yml b/.travis.yml index 02e35bc..8586921 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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