From: Thomas Graf Date: Sun, 24 Aug 2014 20:29:38 +0000 (+0200) Subject: build: Add support for travis-ci X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Ftravis-ci;p=thirdparty%2Flibnl.git build: Add support for travis-ci Signed-off-by: Thomas Graf --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..efc8ae5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: c +compiler: + - gcc + - clang + +before_install: + +script: ./.travis/run.sh diff --git a/.travis/run.sh b/.travis/run.sh new file mode 100755 index 0000000..c204cb8 --- /dev/null +++ b/.travis/run.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +CFLAGS="-Werror" + +if [ $CC = "clang" ]; then + CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument" +fi + +./autogen.sh && ./configure && make CFLAGS="$FLAGS"