travis: Perform build tests with -Werror
authorMartin Willi <martin@revosec.ch>
Thu, 8 May 2014 13:14:33 +0000 (15:14 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:13 +0000 (15:53 +0200)
scripts/test.sh

index 2c8872c..b70e3c0 100755 (executable)
@@ -11,6 +11,8 @@ TARGET=check
 
 DEPS="libgmp-dev"
 
+CFLAGS="-g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -Werror"
+
 case "$TEST" in
 default)
        # should be the default, but lets make sure
@@ -69,4 +71,4 @@ CONFIG="$CONFIG
        --enable-leak-detective=${LEAK_DETECTIVE-no}"
 
 echo "$ ./configure $CONFIG && make $TARGET"
-./configure $CONFIG && make -j4 $TARGET
+CFLAGS="$CFLAGS" ./configure $CONFIG && make -j4 $TARGET