blob: 3bfb3f599a2f7dca7d58ad74db619460c94509e4 [file] [log] [blame]
Harald Weltee57cbe22017-09-05 22:35:10 +02001#!/usr/bin/env bash
2# jenkins build helper script for openbsc. This is how we build on jenkins.osmocom.org
3
4if ! [ -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
7fi
8
Holger Hans Peter Freytherb29ff1d2016-04-13 19:02:13 -04009
10set -ex
11
Harald Weltee57cbe22017-09-05 22:35:10 +020012base="$PWD"
13deps="$base/deps"
14inst="$deps/install"
15export deps inst
16
17mkdir "$deps" || true
18rm -rf "$inst"
19
20osmo-build-dep.sh libosmocore "" ac_cv_path_DOXYGEN=false
21
Maxb87da752017-08-25 17:37:36 +020022verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
23
Harald Weltee57cbe22017-09-05 22:35:10 +020024export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
25export LD_LIBRARY_PATH="$inst/lib"
Holger Hans Peter Freytherb29ff1d2016-04-13 19:02:13 -040026
Harald Weltee57cbe22017-09-05 22:35:10 +020027set +x
28echo
29echo
30echo
Maxea70f362017-09-15 12:16:53 +020031echo " =============================== OsmoGGSN ==============================="
Harald Weltee57cbe22017-09-05 22:35:10 +020032echo
33set -x
34
35cd "$base"
Holger Hans Peter Freytherb29ff1d2016-04-13 19:02:13 -040036autoreconf --install --force
Harald Weltee57cbe22017-09-05 22:35:10 +020037./configure
38$MAKE $PARALLEL_MAKE
39$MAKE distcheck