summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-08-25 00:19:54 +0200
committerThomas Graf <tgraf@suug.ch>2014-08-25 01:07:19 +0200
commit17a4adb0f27f1ce34b5e7b39f636d0d5f23cda49 (patch)
tree37e32b5317684436077f5f7e0a2fedbf40d1e027
parent4492ab547cca3f94807a75724b960af200434936 (diff)
build: fail CI builds if a new warning is introduced
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--.travis.yml2
-rwxr-xr-x.travis/run.sh9
2 files changed, 10 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index e1755fd..de9b0f7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
diff --git a/.travis/run.sh b/.travis/run.sh
new file mode 100755
index 0000000..e7caf56
--- /dev/null
+++ b/.travis/run.sh
@@ -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"