Skip to content
Snippets Groups Projects
Commit 2926b678 authored by Marek Szuba's avatar Marek Szuba
Browse files

.gitlab-ci-yml: Trigger dependent jobs in the test stage

Seeing as they were to run even in the event of any of the local
test jobs having failed, no real point in waiting until after the local
jobs have completed.
parent d1eee77c
No related branches found
No related tags found
1 merge request!443Gitlab CI: enable triggering of dependent builds on Travis
stages:
- test
- posttest
#
# Test-job template
#
......@@ -75,9 +71,7 @@ test:perl5.30-mysql:
# downstream branches) - but then again, we do not trigger dependent
# builds for PRs on Travis either.
.dependent_template:
stage: posttest
# We want this to run even if any test jobs fail
when: always
stage: test
only:
- master
- /^release/\d+$/
......@@ -87,7 +81,7 @@ test:perl5.30-mysql:
# ensembl-rest; disabled for now because that repo a) hasn't got
# GitLab-CI config yet, and b) is still on the list in
# trigger-dependent-build.sh.
.post:trigger_rest:
.test:trigger_rest:
extends: .dependent_template
trigger:
project: ensembl-gh-mirror/ensembl-rest
......@@ -101,7 +95,7 @@ test:perl5.30-mysql:
# is the Travis 'create_request' permission but Travis permissions are
# generated from GitHub ones and it seems that in order to have
# 'create_request' on the latter one requires 'write' on the former.
post:trigger_travis:
test:trigger_travis:
extends: .dependent_template
image: alpine:3.10
variables:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment