Move the git fetch/checkout code and make call to build the testsuite, to debian-stretch-titan/ttcn3-docker-prepare.sh. In the next patch, I will extend the script to update deps right before building too (e.g. because OSMO_TTCN3_BRANCH changed). Related: OS#5017 Change-Id: I4b5bedf058dc527e821f9b7204c632820e671af9changes/19/22819/2
parent
73d23109b1
commit
892d910444
@ -0,0 +1,28 @@ |
||||
#!/bin/sh -e |
||||
if [ $# -lt 2 ]; then |
||||
echo |
||||
echo "usage: ttcn3-docker-prepare OSMO_TTCN3_BRANCH PROJECT [PROJECT ...]" |
||||
echo "arguments:" |
||||
echo " OSMO_TTCN3_BRANCH: as passed from docker" |
||||
echo " PROJECT: make target from osmo-ttcn3-hacks.git, e.g. 'msc'" |
||||
echo |
||||
exit 1 |
||||
fi |
||||
|
||||
set -x |
||||
OSMO_TTCN3_BRANCH=$1 |
||||
PROJECT=$2 |
||||
|
||||
cd /osmo-ttcn3-hacks |
||||
|
||||
git fetch |
||||
git checkout "$OSMO_TTCN3_BRANCH" |
||||
|
||||
if git symbolic-ref -q HEAD; then |
||||
git reset --hard origin/"$OSMO_TTCN3_BRANCH" |
||||
fi |
||||
|
||||
git rev-parse --abbrev-ref HEAD |
||||
git rev-parse HEAD |
||||
|
||||
make "$PROJECT" |
Loading…
Reference in new issue