2018-01-18 18:15:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# jenkins build helper script for libosmocore. This is how we build on jenkins.osmocom.org
|
|
|
|
|
|
|
|
. $(dirname "$0")/jenkins_common.sh
|
|
|
|
|
|
|
|
src_dir="$PWD"
|
|
|
|
build() {
|
|
|
|
build_dir="$1"
|
|
|
|
|
|
|
|
prep_build "$src_dir" "$build_dir"
|
|
|
|
|
2022-03-13 14:32:29 +00:00
|
|
|
"$src_dir"/configure --disable-silent-rules --enable-static --enable-sanitize --enable-werror \
|
2018-09-12 00:53:54 +00:00
|
|
|
--enable-external-tests
|
2018-01-18 16:37:18 +00:00
|
|
|
|
|
|
|
run_make
|
2018-01-18 18:15:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# verify build in dir other than source tree
|
|
|
|
build builddir
|
|
|
|
# verify build in source tree
|
|
|
|
build .
|
|
|
|
|
|
|
|
# do distcheck only once, which is fine from built source tree, since distcheck
|
|
|
|
# is well separated from the source tree state.
|
2019-01-28 18:11:05 +00:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS=--enable-external-tests \
|
2020-10-12 15:40:00 +00:00
|
|
|
$MAKE $PARALLEL_MAKE distcheck \
|
2018-01-18 18:15:40 +00:00
|
|
|
|| cat-testlogs.sh
|
2019-07-10 10:01:50 +00:00
|
|
|
$MAKE maintainer-clean
|
2018-01-18 18:15:40 +00:00
|
|
|
|
|
|
|
osmo-clean-workspace.sh
|