Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 1 | #!/bin/sh |
Harald Welte | 0b1b6b1 | 2017-07-10 15:05:03 +0200 | [diff] [blame] | 2 | # jenkins build helper script for osmo-hlr. 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 | |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 9 | |
| 10 | set -ex |
| 11 | |
| 12 | base="$PWD" |
| 13 | deps="$base/deps" |
| 14 | inst="$deps/install" |
| 15 | export deps inst |
| 16 | |
| 17 | mkdir "$deps" || true |
| 18 | rm -rf "$inst" |
| 19 | |
Max | 05c8b46 | 2017-08-25 17:47:42 +0200 | [diff] [blame] | 20 | verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") |
| 21 | |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 22 | export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH" |
| 23 | export LD_LIBRARY_PATH="$inst/lib" |
| 24 | |
| 25 | osmo-build-dep.sh libosmocore "" ac_cv_path_DOXYGEN=false |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 26 | osmo-build-dep.sh libosmo-abis |
| 27 | |
| 28 | set +x |
| 29 | echo |
| 30 | echo |
| 31 | echo |
| 32 | echo " =============================== osmo-hlr ===============================" |
| 33 | echo |
| 34 | set -x |
| 35 | |
| 36 | cd "$base" |
| 37 | autoreconf --install --force |
Neels Hofmeyr | f95ce04 | 2017-09-25 23:22:02 +0200 | [diff] [blame] | 38 | ./configure --enable-external-tests |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 39 | $MAKE $PARALLEL_MAKE |
Max | 886ecef | 2017-07-11 15:16:16 +0200 | [diff] [blame] | 40 | if [ "x$label" != "xFreeBSD_amd64" ]; then |
| 41 | $MAKE check || cat-testlogs.sh |
| 42 | $MAKE distcheck || cat-testlogs.sh |
| 43 | fi |