summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-08-26 00:08:21 (GMT)
committerThomas Haller <thaller@redhat.com>2014-08-26 10:41:38 (GMT)
commit03f3f3c4c0f0a6136a3c30a1e554a53c0a6f3a06 (patch)
tree26be6535fb1922c9955a87f9634a50ad5c0a4345 /.travis
parent16e3d61689161c77feffe605259f9c0282234be9 (diff)
downloadlibnl-03f3f3c4c0f0a6136a3c30a1e554a53c0a6f3a06.zip
libnl-03f3f3c4c0f0a6136a3c30a1e554a53c0a6f3a06.tar.gz
libnl-03f3f3c4c0f0a6136a3c30a1e554a53c0a6f3a06.tar.bz2
build: Add continuous integration support via travis-ci
This allows any libnl github repo to link to travis-ci which will result in new commits and pull requests to be automatically built with both gcc and clang. Any build failures including the addition of warnings are reported to the author and committer. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/run.sh9
1 files changed, 9 insertions, 0 deletions
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"