blob: 6eee7690b7cd0c713c01713b712c64400c6dfb37 [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
23osmo-build-dep.sh libosmo-abis "" --disable-doxygen
24osmo-build-dep.sh libosmo-netif "" --disable-doxygen
25
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