Skip to content

Commit

Permalink
Travis CI: Make all warnings into errors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mcostalba committed Sep 5, 2017
1 parent 323925b commit 04eb87f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Expand Up @@ -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
Expand Down

0 comments on commit 04eb87f

Please sign in to comment.