]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
build: Add support for travis-ci travis-ci
authorThomas Graf <tgraf@suug.ch>
Sun, 24 Aug 2014 20:29:38 +0000 (22:29 +0200)
committerThomas Graf <tgraf@suug.ch>
Tue, 26 Aug 2014 00:05:47 +0000 (02:05 +0200)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
.travis.yml [new file with mode: 0644]
.travis/run.sh [new file with mode: 0755]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..efc8ae5
--- /dev/null
@@ -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 (executable)
index 0000000..c204cb8
--- /dev/null
@@ -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"