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:
parent
16e3d61689
commit
03f3f3c4c0
|
@ -0,0 +1,8 @@
|
|||
language: c
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
|
||||
before_install:
|
||||
|
||||
script: ./.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"
|
Loading…
Reference in New Issue