blob: dc2f7345da168373baac0b0b22b5855e6ed98c23 [file] [log] [blame]
Harald Welte6fded672018-06-05 19:02:18 +02001#!/usr/bin/env bash
2# jenkins build helper script for openbsc. 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
9
10set -ex
11
12base="$PWD"
13deps="$base/deps"
14inst="$deps/install"
15export deps inst
16
17osmo-clean-workspace.sh
18
19mkdir "$deps" || true
20
21osmo-build-dep.sh libosmocore "" '--disable-doxygen --enable-gnutls'
22
23verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
24
25export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
26export LD_LIBRARY_PATH="$inst/lib"
27
28set +x
29echo
30echo
31echo
32echo " =============================== osmo-sysmon ============================"
33echo
34set -x
35
36cd "$base"
37autoreconf --install --force
38./configure --enable-sanitize --enable-external-tests --enable-werror
39$MAKE $PARALLEL_MAKE
40#LD_LIBRARY_PATH="$inst/lib" $MAKE check \
41# || cat-testlogs.sh
42LD_LIBRARY_PATH="$inst/lib" \
43 DISTCHECK_CONFIGURE_FLAGS="--enable-vty-tests --enable-external-tests --enable-werror" \
44 $MAKE distcheck \
45 || cat-testlogs.sh
46
47osmo-clean-workspace.sh