From 13cf9440c4c5e72a0aac520779d793030bf2fabc Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Mon, 25 Aug 2014 00:19:54 +0200 Subject: build: fail CI builds if a new warning is introduced Signed-off-by: Thomas Graf --- .travis.yml | 2 +- .travis/run.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 .travis/run.sh 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" -- cgit v1.2.3