Skip to content

Commit 04eb87f

Browse files
committed
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.
1 parent 323925b commit 04eb87f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ script:
5050
- echo "Reference bench:" $benchref
5151
#
5252
# Verify bench number against various builds
53-
- make clean && make -j2 ARCH=x86-64 optimize=no debug=yes build > /dev/null && ../tests/signature.sh $benchref
54-
- make clean && make -j2 ARCH=x86-32 optimize=no debug=yes build > /dev/null && ../tests/signature.sh $benchref
55-
- make clean && make -j2 ARCH=x86-32 build > /dev/null && ../tests/signature.sh $benchref
56-
- make clean && make -j2 ARCH=x86-64 build > /dev/null && ../tests/signature.sh $benchref
53+
- export CXXFLAGS=-Werror
54+
- make clean && make -j2 ARCH=x86-64 optimize=no debug=yes build && ../tests/signature.sh $benchref
55+
- make clean && make -j2 ARCH=x86-32 optimize=no debug=yes build && ../tests/signature.sh $benchref
56+
- make clean && make -j2 ARCH=x86-32 build && ../tests/signature.sh $benchref
57+
- make clean && make -j2 ARCH=x86-64 build && ../tests/signature.sh $benchref
5758
#
5859
# Check perft and reproducible search
5960
- ../tests/perft.sh

0 commit comments

Comments
 (0)