[PATCH] build: Add continuous integration support via travis-ci
Thomas Graf
tgraf at suug.ch
Mon Aug 25 17:08:21 PDT 2014
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 at suug.ch>
---
.travis.yml | 8 ++++++++
.travis/run.sh | 9 +++++++++
2 files changed, 17 insertions(+)
create mode 100644 .travis.yml
create mode 100755 .travis/run.sh
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"
--
1.9.3
More information about the libnl
mailing list