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>
This commit is contained in:
Thomas Graf
2014-08-26 02:08:21 +02:00
committed by Thomas Haller
parent 16e3d61689
commit 03f3f3c4c0
2 changed files with 17 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
language: c
compiler:
- gcc
- clang
before_install:
script: ./.travis/run.sh
Executable
+9
View File
@@ -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"