blob: 88b01a519118dbd18e3990ac3fa7e3ed5b7fc55d [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
22osmo-build-dep.sh libosmocore "" --disable-doxygen
Harald Welte80a83cc2018-10-15 01:48:28 +020023osmo-build-dep.sh libosmo-abis
24osmo-build-dep.sh libosmo-netif
Harald Weltec7b5c7a2018-10-14 20:42:56 +020025
26export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
27export LD_LIBRARY_PATH="$inst/lib"
28
29set +x
30echo
31echo
32echo
33echo " =============================== libosmo-abis ==============================="
34echo
35set -x
36
37autoreconf --install --force
38./configure --enable-sanitize #--enable-werror
39$MAKE $PARALLEL_MAKE
40$MAKE distcheck \
41 || cat-testlogs.sh
42
43osmo-clean-workspace.sh