2017-02-20 17:24:03 +00:00
|
|
|
#!/bin/sh
|
2017-07-10 12:58:06 +00:00
|
|
|
# jenkins build helper script for libosmo-abis. This is how we build on jenkins.osmocom.org
|
|
|
|
|
|
|
|
if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then
|
|
|
|
echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !"
|
|
|
|
exit 2
|
|
|
|
fi
|
2016-04-13 22:52:43 +00:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2016-10-06 21:23:24 +00:00
|
|
|
base="$PWD"
|
|
|
|
deps="$base/deps"
|
|
|
|
inst="$deps/install"
|
|
|
|
export deps inst
|
2016-04-13 22:52:43 +00:00
|
|
|
|
2017-10-27 20:49:59 +00:00
|
|
|
osmo-clean-workspace.sh
|
|
|
|
|
2016-10-06 21:23:24 +00:00
|
|
|
mkdir "$deps" || true
|
|
|
|
|
2017-08-25 15:22:29 +00:00
|
|
|
verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
|
2016-10-06 21:23:24 +00:00
|
|
|
|
2018-02-20 19:21:13 +00:00
|
|
|
osmo-build-dep.sh libosmocore "" --disable-doxygen
|
2017-03-01 14:36:24 +00:00
|
|
|
|
2016-10-06 21:23:24 +00:00
|
|
|
export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
|
|
export LD_LIBRARY_PATH="$inst/lib"
|
2020-08-02 08:32:48 +00:00
|
|
|
export PATH="$inst/bin:$PATH"
|
|
|
|
|
|
|
|
osmo-build-dep.sh osmo-e1d
|
2016-10-06 21:23:24 +00:00
|
|
|
|
|
|
|
set +x
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo " =============================== libosmo-abis ==============================="
|
|
|
|
echo
|
|
|
|
set -x
|
2016-04-13 22:52:43 +00:00
|
|
|
|
|
|
|
autoreconf --install --force
|
2020-08-02 08:32:48 +00:00
|
|
|
./configure --enable-sanitize --enable-werror --enable-e1d
|
2016-10-06 21:19:41 +00:00
|
|
|
$MAKE $PARALLEL_MAKE
|
2020-10-12 16:24:48 +00:00
|
|
|
$MAKE $PARALLEL_MAKE distcheck \
|
2016-10-06 21:24:38 +00:00
|
|
|
|| cat-testlogs.sh
|
2020-10-12 16:24:48 +00:00
|
|
|
$MAKE $PARALLEL_MAKE maintainer-clean
|
2017-10-27 20:49:59 +00:00
|
|
|
|
|
|
|
osmo-clean-workspace.sh
|