blob: 8dc016270d6f06d77f1cbca4799a324c75b81bdd [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
Neels Hofmeyrc6a6d262017-10-27 22:54:31 +020017osmo-clean-workspace.sh
18
Neels Hofmeyr40d8b012016-12-11 00:27:48 +010019mkdir "$deps" || true
Neels Hofmeyr40d8b012016-12-11 00:27:48 +010020
Max05c8b462017-08-25 17:47:42 +020021verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
22
Neels Hofmeyr40d8b012016-12-11 00:27:48 +010023export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
24export LD_LIBRARY_PATH="$inst/lib"
25
26osmo-build-dep.sh libosmocore "" ac_cv_path_DOXYGEN=false
Neels Hofmeyr40d8b012016-12-11 00:27:48 +010027osmo-build-dep.sh libosmo-abis
28
29set +x
30echo
31echo
32echo
33echo " =============================== osmo-hlr ==============================="
34echo
35set -x
36
37cd "$base"
38autoreconf --install --force
Neels Hofmeyr70e7f212018-03-05 20:54:54 +010039./configure --enable-sanitize --enable-external-tests --enable-werror
Neels Hofmeyr40d8b012016-12-11 00:27:48 +010040$MAKE $PARALLEL_MAKE
Max33eeeef2017-11-23 16:56:24 +010041$MAKE check || cat-testlogs.sh
42$MAKE distcheck || cat-testlogs.sh
Neels Hofmeyrc6a6d262017-10-27 22:54:31 +020043
44osmo-clean-workspace.sh