From 8cd946a683b81460bbb5e3f62acd5a65225581d7 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 26 Aug 2014 13:48:17 +0200 Subject: [PATCH] travis-ci: run `make check` in travis build Test programs are only compiled when running `make check`. Also, fix passing $CFLAGS argument to make. Acked-by: Thomas Graf Signed-off-by: Thomas Haller --- .travis/run.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis/run.sh b/.travis/run.sh index c204cb8..941037a 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -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