blob: e2abb609b5992c9b921a150ec482d120e2c6bc18 [file] [log] [blame]
Neels Hofmeyr40d8b012016-12-11 00:27:48 +01001#!/bin/sh
Harald Welte0b1b6b12017-07-10 15:05:03 +02002# jenkins build helper script for osmo-hlr. 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
Neels Hofmeyr40d8b012016-12-11 00:27:48 +01009
10set -ex
11
12base="$PWD"
13deps="$base/deps"
14inst="$deps/install"
15export deps inst
16
17mkdir "$deps" || true
18rm -rf "$inst"
19
Max05c8b462017-08-25 17:47:42 +020020verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
21
Neels Hofmeyr40d8b012016-12-11 00:27:48 +010022export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
23export LD_LIBRARY_PATH="$inst/lib"
24
25osmo-build-dep.sh libosmocore "" ac_cv_path_DOXYGEN=false
Neels Hofmeyr40d8b012016-12-11 00:27:48 +010026osmo-build-dep.sh libosmo-abis
27
28set +x
29echo
30echo
31echo
32echo " =============================== osmo-hlr ==============================="
33echo
34set -x
35
36cd "$base"
37autoreconf --install --force
38./configure
39$MAKE $PARALLEL_MAKE
Max886ecef2017-07-11 15:16:16 +020040if [ "x$label" != "xFreeBSD_amd64" ]; then
41 $MAKE check || cat-testlogs.sh
42 $MAKE distcheck || cat-testlogs.sh
43fi