diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-05-17 18:57:51 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-05-18 13:42:01 +0200 |
commit | 2f1d4deb71158c0564da2e0f3d2616bacb71fc46 (patch) | |
tree | c90bfb25b8abda1d25826be73eee650aa449fe9c /jobs | |
parent | de4816f77a984b989980f6c0af94e92b8b4df9ee (diff) |
jobs: osmo-gsm-tester-runner: Add ttcn3 job
Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/osmo-gsm-tester-runner.yml | 27 | ||||
-rw-r--r-- | jobs/osmo-gsm-tester_ttcn3.sh | 14 |
2 files changed, 41 insertions, 0 deletions
diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml index 5e1ff92..f6774b7 100644 --- a/jobs/osmo-gsm-tester-runner.yml +++ b/jobs/osmo-gsm-tester-runner.yml @@ -7,6 +7,7 @@ jobs: - 'osmo-gsm-tester_run-{stage}' - 'osmo-gsm-tester_gerrit' + - 'osmo-gsm-tester_ttcn3' - scm: name: osmo-gsm-tester-gerrit @@ -166,3 +167,29 @@ - junit: results: 'trial-*/last_run/trial-*.xml' allow-empty-results: true + +# ttcn3 job +- job: + name: 'osmo-gsm-tester_ttcn3' + defaults: runner + scm: + - 'osmo-gsm-tester-repo' + triggers: + - timed: "H H/2 * * *" + - pollscm: + cron: "H/5 * * * *" + builders: + - shell: | + # make sure no bin artifacts from a previous run remain + rm -f *.tgz *.md5 + - copy_artifact_all + - copy_artifact: + repo: osmo-gsm-tester_build-osmocom-bb + - shell: !include-raw: osmo-gsm-tester_ttcn3.sh + publishers: + - archive: + artifacts: '*-run.tgz, *-bin.tgz' + default-excludes: false + - junit: + results: 'trial-*/last_run/trial-*.xml' + allow-empty-results: true diff --git a/jobs/osmo-gsm-tester_ttcn3.sh b/jobs/osmo-gsm-tester_ttcn3.sh new file mode 100644 index 0000000..f2b974f --- /dev/null +++ b/jobs/osmo-gsm-tester_ttcn3.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -e -x + +# On our hardware, we actually use the example configuration as-is. +export OSMO_GSM_TESTER_CONF="$PWD/osmo-gsm-tester/ttcn3" + +# debug: provoke a failure +#export OSMO_GSM_TESTER_OPTS="-s debug -t fail" + +unlink osmo-gsm-tester/ttcn3/resources.conf || true +ln -s resources.conf.prod osmo-gsm-tester/ttcn3/resources.conf + +PATH="$PWD/osmo-gsm-tester/src:$PATH" \ + ./osmo-gsm-tester/ttcn3/jenkins-run.sh |