build: fail CI builds if a new warning is introduced
Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
parent
4492ab547c
commit
17a4adb0f2
@ -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
9
.travis/run.sh
Executable 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"
|
Loading…
x
Reference in New Issue
Block a user