build: fail CI builds if a new warning is introduced

Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Thomas Graf 2014-08-25 00:19:54 +02:00
parent 4492ab547c
commit 17a4adb0f2
2 changed files with 10 additions and 1 deletions

View File

@ -7,4 +7,4 @@ before_install:
- sudo apt-get install libnl-3-dev libnl-route-3-dev
- sudo apt-get install libncurses-dev
# Change this to your needs
script: ./autogen.sh && ./configure && make
script: ./.travis/run.sh

9
.travis/run.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
FLAGS="-Werror"
if [ $CC = "clang" ]; then
FLAGS="$FLAGS -Wno-error=unused-command-line-argument"
fi
./autogen.sh && ./configure && make CFLAGS="$FLAGS"