diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-02-10 15:22:21 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2021-02-11 15:45:40 +0100 |
commit | 892d910444f7572da9591305dce0e630aeec3104 (patch) | |
tree | 854c514530ef42b1e845705f3af40a4c0b9b9960 /ttcn3-sip-test | |
parent | 73d23109b14aaf2031b60cc06eec3573ae4920bc (diff) |
ttcn3: move prepare code to shared script
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: I4b5bedf058dc527e821f9b7204c632820e671af9
Diffstat (limited to 'ttcn3-sip-test')
-rw-r--r-- | ttcn3-sip-test/Dockerfile | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ttcn3-sip-test/Dockerfile b/ttcn3-sip-test/Dockerfile index 5b3044c..3e7b8f0 100644 --- a/ttcn3-sip-test/Dockerfile +++ b/ttcn3-sip-test/Dockerfile @@ -3,12 +3,7 @@ FROM $USER/debian-stretch-titan ARG OSMO_TTCN3_BRANCH="master" ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch?h=$OSMO_TTCN3_BRANCH /tmp/commit -RUN cd osmo-ttcn3-hacks && \ - git fetch && \ - git checkout $OSMO_TTCN3_BRANCH && \ - (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_TTCN3_BRANCH || exit 1); \ - git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ - make sip +RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" sip VOLUME /data |