]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
travis-ci: run `make check` in travis build
authorThomas Haller <thaller@redhat.com>
Tue, 26 Aug 2014 11:48:17 +0000 (13:48 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 26 Aug 2014 12:15:36 +0000 (14:15 +0200)
Test programs are only compiled when running `make check`.
Also, fix passing $CFLAGS argument to make.

Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
.travis/run.sh

index c204cb8c1c1df8590538ff7df3ee96b7100b867a..941037aff2ae480df8b750d39536634cbaf0c016 100755 (executable)
@@ -1,9 +1,14 @@
 #!/bin/bash
 
+set -e
+
 CFLAGS="-Werror"
 
-if [ $CC = "clang" ]; then
+if [ "$CC" = "clang" ]; then
        CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
 fi
 
-./autogen.sh && ./configure && make CFLAGS="$FLAGS"
+./autogen.sh
+./configure
+make CFLAGS="$CFLAGS"
+make CFLAGS="$CFLAGS" check