blob: b1529c4f26d6f47bda6a6ffbce8800380ac21770 [file] [log] [blame]
Harald Welte6fded672018-06-05 19:02:18 +02001#!/usr/bin/env bash
Max14474d32019-01-31 16:08:12 +01002# jenkins build helper: this is how we build on jenkins.osmocom.org
Harald Welte6fded672018-06-05 19:02:18 +02003
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
Max14474d32019-01-31 16:08:12 +010040
Harald Welte6fded672018-06-05 19:02:18 +020041LD_LIBRARY_PATH="$inst/lib" \
42 DISTCHECK_CONFIGURE_FLAGS="--enable-vty-tests --enable-external-tests --enable-werror" \
43 $MAKE distcheck \
44 || cat-testlogs.sh
45
46osmo-clean-workspace.sh