update git URLs (git -> https; gitea)
[openggsn.git] / contrib / jenkins.sh
blob6544ce3f20ed8efd8c5e52b54e90af2194d86701
1 #!/usr/bin/env bash
2 # jenkins build helper script for openbsc. This is how we build on jenkins.osmocom.org
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
10 set -ex
12 base="$PWD"
13 deps="$base/deps"
14 inst="$deps/install"
15 export deps inst
17 mkdir "$deps" || true
18 rm -rf "$inst"
20 osmo-build-dep.sh libosmocore "" ac_cv_path_DOXYGEN=false
22 verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
24 export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
25 export LD_LIBRARY_PATH="$inst/lib"
27 set +x
28 echo
29 echo
30 echo
31 echo " =============================== openggsn ==============================="
32 echo
33 set -x
35 cd "$base"
36 autoreconf --install --force
37 ./configure $GTP
38 $MAKE $PARALLEL_MAKE
39 $MAKE distcheck