blob: ff83984f18693523e2267a5bc4e717ad57628718 [file] [log] [blame]
Max8a3be282017-02-20 18:24:03 +01001#!/bin/sh
Harald Weltea06b8772017-07-10 14:58:06 +02002# 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
Holger Hans Peter Freyther7c9337b2016-04-13 18:52:43 -04008
9set -ex
10
Neels Hofmeyrfdcb9612016-10-06 23:23:24 +020011base="$PWD"
12deps="$base/deps"
13inst="$deps/install"
14export deps inst
Holger Hans Peter Freyther7c9337b2016-04-13 18:52:43 -040015
Neels Hofmeyrd3c81da2017-10-27 22:49:59 +020016osmo-clean-workspace.sh
17
Neels Hofmeyrfdcb9612016-10-06 23:23:24 +020018mkdir "$deps" || true
Holger Hans Peter Freyther7c9337b2016-04-13 18:52:43 -040019
Maxd3292912017-08-25 17:22:29 +020020verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
Neels Hofmeyrfdcb9612016-10-06 23:23:24 +020021
Maxd3292912017-08-25 17:22:29 +020022osmo-build-dep.sh libosmocore
Neels Hofmeyr3fdb2872017-03-01 15:36:24 +010023
Neels Hofmeyrfdcb9612016-10-06 23:23:24 +020024export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
25export LD_LIBRARY_PATH="$inst/lib"
26
27set +x
28echo
29echo
30echo
31echo " =============================== libosmo-abis ==============================="
32echo
33set -x
34
Holger Hans Peter Freyther7c9337b2016-04-13 18:52:43 -040035autoreconf --install --force
Pau Espin Pedrol35003ec2017-07-05 22:04:43 +020036./configure --enable-sanitize CFLAGS="-Werror" CPPFLAGS="-Werror"
Neels Hofmeyr04c73cb2016-10-06 23:19:41 +020037$MAKE $PARALLEL_MAKE
Neels Hofmeyr017752f2016-10-06 23:24:38 +020038$MAKE distcheck \
39 || cat-testlogs.sh
Neels Hofmeyrd3c81da2017-10-27 22:49:59 +020040
41osmo-clean-workspace.sh