summaryrefslogtreecommitdiff
path: root/tests/platform-ci
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-06-29 20:05:17 +0200
committerVarac <varac@leap.se>2017-06-29 20:05:17 +0200
commite30f5a1fc864abf7438a117564a6fbad6752e2aa (patch)
tree232ca7a7e687ca31a6baa22bd2cb2a24cad3c8a0 /tests/platform-ci
parent696750cbc39b969be2c774e1cd2d05f193f63b91 (diff)
[CI] Fix node name for local tests
Diffstat (limited to 'tests/platform-ci')
-rwxr-xr-xtests/platform-ci/ci-build.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/platform-ci/ci-build.sh b/tests/platform-ci/ci-build.sh
index 88856511..be492d32 100755
--- a/tests/platform-ci/ci-build.sh
+++ b/tests/platform-ci/ci-build.sh
@@ -68,12 +68,14 @@ test() {
}
build_from_scratch() {
- # create node(s) with unique id so we can run tests in parallel
- NAME="citest${CI_BUILD_ID:-0}"
# when using gitlab-runner locally, CI_BUILD_ID is always 1 which
# will conflict with running/terminating AWS instances in subsequent runs
# therefore we pick a random number in this case
- [ "${CI_BUILD_ID:-0}" -eq "1" ] && NAME+="000${RANDOM}"
+ [ "${CI_JOB_ID}" == "1" ] && CI_JOB_ID="000${RANDOM}"
+
+ # create node(s) with unique id so we can run tests in parallel
+ NAME="citest${CI_JOB_ID:-0}"
+
TAG='single'
SERVICES='couchdb,soledad,mx,webapp,tor,monitor'