summaryrefslogtreecommitdiffstats
path: root/.travis/run.sh
blob: afa17020fc3cb1949b866759abb8ec320c4c664e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -e

CFLAGS="-Werror -Wall -Wdeclaration-after-statement -Wvla"

if [ "$CC" = "clang" ]; then
	CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function"
fi

CFLAGS="$CFLAGS -DNL_MORE_ASSERTS=1000"

export CFLAGS
./autogen.sh
./configure
make -j 5
make -j 5 check