aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-02-15 14:30:24 +0100
committerosmith <osmith@sysmocom.de>2022-02-21 08:08:00 +0000
commitb712491a56a544707c720eaae50e961064f6945b (patch)
tree570c36b84160c7c587caf48a942143997b39c071
parent950b8ea3805f6ae4dfba3c454ef4738c5cd78ae0 (diff)
jobs/gerrit-verifications: build ttcn3 in docker
Build the testsuites in the same docker container during gerrit verification, as it will be the case when building and running the testsuites in the various ttcn3-* jenkins jobs. This avoids the need to install eclipse-titan and libfftranscode on the jenkins nodes. Related: OS#5452 Change-Id: I6a667255bb55a945b4c6279d711142aa252c6996
-rw-r--r--jobs/gerrit-verifications.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/jobs/gerrit-verifications.yml b/jobs/gerrit-verifications.yml
index 32c3e3b..f7a6312 100644
--- a/jobs/gerrit-verifications.yml
+++ b/jobs/gerrit-verifications.yml
@@ -261,12 +261,20 @@
cmd: '{timeout_cmd} ./contrib/jenkins.sh'
- osmo-ttcn3-hacks:
- repos_url: 'https://gerrit.osmocom.org/{repos}'
slave_axis: !!python/tuple [ttcn3]
- concurrent: false
cmd: |
- set -e
- make deps; make clean; make compile
+ docker run \
+ --rm \
+ -v "$PWD:/build" \
+ "registry.osmocom.org/osmocom-build/debian-bullseye-titan" \
+ {timeout_cmd} \
+ sh -e -x -c "
+ useradd --uid=1000 build;
+ cd /build;
+ su build -c 'make deps';
+ su build -c 'make clean';
+ su build -c 'make compile';
+ "
jobs:
- 'gerrit-{repos}'