Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # jenkins build helper script for libosmo-abis. 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 | set -ex |
| 10 | |
| 11 | base="$PWD" |
| 12 | deps="$base/deps" |
| 13 | inst="$deps/install" |
| 14 | export deps inst |
| 15 | |
| 16 | osmo-clean-workspace.sh |
| 17 | |
| 18 | mkdir "$deps" || true |
| 19 | |
| 20 | verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") |
| 21 | |
Harald Welte | 72f702c | 2018-10-15 01:51:22 +0200 | [diff] [blame] | 22 | export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH" |
| 23 | export LD_LIBRARY_PATH="$inst/lib" |
| 24 | |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 25 | osmo-build-dep.sh libosmocore "" --disable-doxygen |
Harald Welte | 80a83cc | 2018-10-15 01:48:28 +0200 | [diff] [blame] | 26 | osmo-build-dep.sh libosmo-abis |
| 27 | osmo-build-dep.sh libosmo-netif |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 28 | |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 29 | set +x |
| 30 | echo |
| 31 | echo |
| 32 | echo |
Harald Welte | 61df6c3 | 2018-10-15 01:51:53 +0200 | [diff] [blame] | 33 | echo " =============================== osmo-remsim ===============================" |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 34 | echo |
| 35 | set -x |
| 36 | |
| 37 | autoreconf --install --force |
| 38 | ./configure --enable-sanitize #--enable-werror |
| 39 | $MAKE $PARALLEL_MAKE |
| 40 | $MAKE distcheck \ |
| 41 | || cat-testlogs.sh |
| 42 | |
| 43 | osmo-clean-workspace.sh |