blob: 249df64efdf04e4c55545f745dba2d78f55e28ac [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
20verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
21
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 Weltec7b5c7a2018-10-14 20:42:56 +020028
Harald Weltec7b5c7a2018-10-14 20:42:56 +020029set +x
30echo
31echo
32echo
Harald Welte61df6c32018-10-15 01:51:53 +020033echo " =============================== osmo-remsim ==============================="
Harald Weltec7b5c7a2018-10-14 20:42:56 +020034echo
35set -x
36
37autoreconf --install --force
38./configure --enable-sanitize #--enable-werror
39$MAKE $PARALLEL_MAKE
40$MAKE distcheck \
41 || cat-testlogs.sh
Oliver Smithfed6d152019-07-10 13:23:49 +020042$MAKE maintainer-clean
Harald Weltec7b5c7a2018-10-14 20:42:56 +020043
44osmo-clean-workspace.sh