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 00:19:54 +0200
commit13cf9440c4c5e72a0aac520779d793030bf2fabc (patch)
tree1e6bd95ea33c10daeb83b48ead52d3acd0e22986
parent9d89c5bc8e9ae07edb325a7df91daac41c43e958 (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"