jenkins: add jenkins_bts_model.sh

Change-Id: Ie7c32e68f789414fdf3c407c0da06cbf983f751a
This commit is contained in:
Neels Hofmeyr 2016-11-30 04:21:18 +01:00
parent 704fba5dc2
commit 103ddc7155
1 changed files with 33 additions and 0 deletions

33
contrib/jenkins_bts_model.sh Executable file
View File

@ -0,0 +1,33 @@
#!/bin/sh
bts_model="$1"
if [ ! -d "./contrib" ]; then
echo "Run ./contrib/jenkins_bts_model.sh from the root of the osmo-bts tree"
exit 1
fi
set -x -e
case "$bts_model" in
sysmo)
./contrib/jenkins_sysmobts.sh
;;
oct)
./contrib/jenkins_oct.sh
;;
trx)
./contrib/jenkins_bts_trx.sh
;;
oct+trx)
./contrib/jenkins_oct_and_bts_trx.sh
;;
*)
set +x
echo "Unknown BTS model '$bts_model'"
;;
esac