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 | |
Harald Welte | 8c1ca1b | 2019-12-17 13:26:42 +0100 | [diff] [blame] | 20 | verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]" -not -path "./deps/*") |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 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 | fd5dafc | 2019-12-15 21:14:14 +0100 | [diff] [blame] | 28 | osmo-build-dep.sh simtrace2 |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 29 | |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 30 | set +x |
| 31 | echo |
| 32 | echo |
| 33 | echo |
Harald Welte | 61df6c3 | 2018-10-15 01:51:53 +0200 | [diff] [blame] | 34 | echo " =============================== osmo-remsim ===============================" |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 35 | echo |
| 36 | set -x |
| 37 | |
| 38 | autoreconf --install --force |
| 39 | ./configure --enable-sanitize #--enable-werror |
| 40 | $MAKE $PARALLEL_MAKE |
| 41 | $MAKE distcheck \ |
| 42 | || cat-testlogs.sh |
Oliver Smith | fed6d15 | 2019-07-10 13:23:49 +0200 | [diff] [blame] | 43 | $MAKE maintainer-clean |
Harald Welte | c7b5c7a | 2018-10-14 20:42:56 +0200 | [diff] [blame] | 44 | |
| 45 | osmo-clean-workspace.sh |