blob: 347ea9bc055a1e99f28dcabc21ca34e52b747be8 [file] [log] [blame]
Harald Weltec7b5c7a2018-10-14 20:42:56 +02001#!/bin/sh
2# jenkins build helper script for libosmo-abis. This is how we build on jenkins.osmocom.org
3
4if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then
5 echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !"
6 exit 2
7fi
8
9set -ex
10
11base="$PWD"
12deps="$base/deps"
13inst="$deps/install"
14export deps inst
15
16osmo-clean-workspace.sh
17
18mkdir "$deps" || true
19
Harald Welte8c1ca1b2019-12-17 13:26:42 +010020verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]" -not -path "./deps/*")
Harald Weltec7b5c7a2018-10-14 20:42:56 +020021
Harald Welte72f702c2018-10-15 01:51:22 +020022export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
23export LD_LIBRARY_PATH="$inst/lib"
24
Harald Weltec7b5c7a2018-10-14 20:42:56 +020025osmo-build-dep.sh libosmocore "" --disable-doxygen
Harald Welte80a83cc2018-10-15 01:48:28 +020026osmo-build-dep.sh libosmo-abis
27osmo-build-dep.sh libosmo-netif
Harald Weltefd5dafc2019-12-15 21:14:14 +010028osmo-build-dep.sh simtrace2
Harald Weltec7b5c7a2018-10-14 20:42:56 +020029
Harald Weltec7b5c7a2018-10-14 20:42:56 +020030set +x
31echo
32echo
33echo
Harald Welte61df6c32018-10-15 01:51:53 +020034echo " =============================== osmo-remsim ==============================="
Harald Weltec7b5c7a2018-10-14 20:42:56 +020035echo
36set -x
37
38autoreconf --install --force
39./configure --enable-sanitize #--enable-werror
40$MAKE $PARALLEL_MAKE
41$MAKE distcheck \
42 || cat-testlogs.sh
Oliver Smithfed6d152019-07-10 13:23:49 +020043$MAKE maintainer-clean
Harald Weltec7b5c7a2018-10-14 20:42:56 +020044
45osmo-clean-workspace.sh