Max | 8a3be28 | 2017-02-20 18:24:03 +0100 | [diff] [blame] | 1 | #!/bin/sh |
Harald Welte | a06b877 | 2017-07-10 14:58:06 +0200 | [diff] [blame] | 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 |
Holger Hans Peter Freyther | 7c9337b | 2016-04-13 18:52:43 -0400 | [diff] [blame] | 8 | |
| 9 | set -ex |
| 10 | |
Neels Hofmeyr | fdcb961 | 2016-10-06 23:23:24 +0200 | [diff] [blame] | 11 | base="$PWD" |
| 12 | deps="$base/deps" |
| 13 | inst="$deps/install" |
| 14 | export deps inst |
Holger Hans Peter Freyther | 7c9337b | 2016-04-13 18:52:43 -0400 | [diff] [blame] | 15 | |
Neels Hofmeyr | d3c81da | 2017-10-27 22:49:59 +0200 | [diff] [blame] | 16 | osmo-clean-workspace.sh |
| 17 | |
Neels Hofmeyr | fdcb961 | 2016-10-06 23:23:24 +0200 | [diff] [blame] | 18 | mkdir "$deps" || true |
Holger Hans Peter Freyther | 7c9337b | 2016-04-13 18:52:43 -0400 | [diff] [blame] | 19 | |
Max | d329291 | 2017-08-25 17:22:29 +0200 | [diff] [blame] | 20 | verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") |
Neels Hofmeyr | fdcb961 | 2016-10-06 23:23:24 +0200 | [diff] [blame] | 21 | |
Pau Espin Pedrol | 61460fd | 2018-02-20 20:21:13 +0100 | [diff] [blame] | 22 | osmo-build-dep.sh libosmocore "" --disable-doxygen |
Neels Hofmeyr | 3fdb287 | 2017-03-01 15:36:24 +0100 | [diff] [blame] | 23 | |
Neels Hofmeyr | fdcb961 | 2016-10-06 23:23:24 +0200 | [diff] [blame] | 24 | export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH" |
| 25 | export LD_LIBRARY_PATH="$inst/lib" |
Harald Welte | 58538de | 2020-08-02 10:32:48 +0200 | [diff] [blame] | 26 | export PATH="$inst/bin:$PATH" |
| 27 | |
| 28 | osmo-build-dep.sh osmo-e1d |
Neels Hofmeyr | fdcb961 | 2016-10-06 23:23:24 +0200 | [diff] [blame] | 29 | |
| 30 | set +x |
| 31 | echo |
| 32 | echo |
| 33 | echo |
| 34 | echo " =============================== libosmo-abis ===============================" |
| 35 | echo |
| 36 | set -x |
| 37 | |
Holger Hans Peter Freyther | 7c9337b | 2016-04-13 18:52:43 -0400 | [diff] [blame] | 38 | autoreconf --install --force |
Harald Welte | 58538de | 2020-08-02 10:32:48 +0200 | [diff] [blame] | 39 | ./configure --enable-sanitize --enable-werror --enable-e1d |
Neels Hofmeyr | 04c73cb | 2016-10-06 23:19:41 +0200 | [diff] [blame] | 40 | $MAKE $PARALLEL_MAKE |
Pau Espin Pedrol | 424e50f | 2020-10-12 18:24:48 +0200 | [diff] [blame] | 41 | $MAKE $PARALLEL_MAKE distcheck \ |
Neels Hofmeyr | 017752f | 2016-10-06 23:24:38 +0200 | [diff] [blame] | 42 | || cat-testlogs.sh |
Pau Espin Pedrol | 424e50f | 2020-10-12 18:24:48 +0200 | [diff] [blame] | 43 | $MAKE $PARALLEL_MAKE maintainer-clean |
Neels Hofmeyr | d3c81da | 2017-10-27 22:49:59 +0200 | [diff] [blame] | 44 | |
| 45 | osmo-clean-workspace.sh |