blob: c397d5281b790dfd9785b0116c0dfd6135a7af3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
# jenkins build helper script for libosmo-sccp. This is how we build on jenkins.osmocom.org
. $(dirname "$0")/jenkins_common.sh
ENABLE_SANITIZE="--enable-sanitize"
if [ "x$label" = "xFreeBSD_amd64" ]; then
ENABLE_SANITIZE=""
fi
build() {
$1 --enable-static $2 CFLAGS="-Werror" CPPFLAGS="-Werror"
$MAKE $PARALLEL_MAKE check \
|| cat-testlogs.sh
$MAKE distcheck \
|| cat-testlogs.sh
}
# verify build in dir other than source tree
mkdir -p builddir
cd builddir
build ../configure $ENABLE_SANITIZE
cd ..
build ./configure $ENABLE_SANITIZE
|