jenkins.sh: use osmo-build-dep.sh

Like in libosmo-abis' and other jenkins.sh

Change-Id: I24f5a04abdf986eee4358bb3327b8d8b9b27e8f2
This commit is contained in:
Neels Hofmeyr 2016-10-07 01:17:20 +02:00
parent 793b273a70
commit f7f17d4b8f
1 changed files with 17 additions and 43 deletions

View File

@ -1,61 +1,35 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export PATH="$PATH:$HOME/osmo-ci/scripts"
set -ex set -ex
base="$PWD" base="$PWD"
deps="$base/deps" deps="$base/deps"
inst="$deps/install" inst="$deps/install"
export deps inst
mkdir "$deps" || true mkdir "$deps" || true
rm -rf "$inst" rm -rf "$inst"
marker() { osmo-build-dep.sh libosmocore
set +x
echo
echo
echo
echo " =============================== $@ ==============================="
echo
set -x
}
build_dep() {
project="$1"
branch="$2"
marker $project
if [ -z "$project" ]; then
echo "internal failure"
exit 1
fi
cd "$deps"
rm -rf "$project"
osmo-deps.sh "$project"
cd "$project"
if [ -n "$branch" ]; then
git checkout "$branch"
fi
git rev-parse HEAD
autoreconf --install --force
./configure --prefix="$inst"
$MAKE $PARALLEL_MAKE install
}
build_dep libosmocore
# All below builds want this PKG_CONFIG_PATH
export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH" export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$inst/lib"
build_dep libosmo-abis osmo-build-dep.sh libosmo-abis
build_dep libosmo-netif sysmocom/sctp osmo-build-dep.sh libosmo-netif sysmocom/sctp
build_dep libosmo-sccp sysmocom/iu osmo-build-dep.sh libosmo-sccp sysmocom/iu
build_dep libasn1c osmo-build-dep.sh libasn1c
# the asn1c binary is used by the 'regen' target below # the asn1c binary is used by the 'regen' target below
build_dep asn1c aper-prefix osmo-build-dep.sh asn1c aper-prefix
marker osmo-iuh set +x
cd "$base" echo
echo
echo
echo " =============================== osmo-iuh ==============================="
echo
set -x
autoreconf --install --force autoreconf --install --force
./configure ./configure
@ -75,7 +49,7 @@ if ! git diff-files --quiet ; then
fi fi
$MAKE $PARALLEL_MAKE $MAKE $PARALLEL_MAKE
LD_LIBRARY_PATH="$inst/lib" $MAKE check \ $MAKE check \
|| cat-testlogs.sh || cat-testlogs.sh
LD_LIBRARY_PATH="$inst/lib" $MAKE distcheck \ $MAKE distcheck \
|| cat-testlogs.sh || cat-testlogs.sh