Debian Codegraph @

contrib/jenkins.sh

raw symbols SCIP
1 #!/bin/sh
2 # jenkins build helper script for libosmo-netif. This is how we build on jenkins.osmocom.org
3
4 if ! [ -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
7 fi
8
9
10 set -ex
11
12 base="$PWD"
13 deps="$base/deps"
14 inst="$deps/install"
15 export deps inst
16
17 osmo-clean-workspace.sh
18
19 mkdir "$deps" || true
20
21 verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
22
23 export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
24 export LD_LIBRARY_PATH="$inst/lib"
25
26 osmo-build-dep.sh libosmocore "" --disable-doxygen
27
28 set +x
29 echo
30 echo
31 echo
32 echo " =============================== libosmo-netif ==============================="
33 echo
34 set -x
35
36 autoreconf --install --force
37 ./configure --enable-sanitize --enable-werror --enable-lapd-examples
38 $MAKE $PARALLEL_MAKE
39 $MAKE $PARALLEL_MAKE distcheck \
40 || cat-testlogs.sh
41 $MAKE $PARALLEL_MAKE maintainer-clean
42
43 osmo-clean-workspace.sh