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 <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
7c775184c1
commit
8cd946a683
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue