Skip to content
Snippets Groups Projects
Commit cba97a42 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[ci] enable lecture trigger

parent ee20fc79
No related branches found
No related tags found
1 merge request!2408Feature/ci integration
stages: stages:
- configure - configure
- trigger - trigger
# - downstream modules - downstream modules
variables: variables:
IMAGE_REGISTRY_URL: $CI_REGISTRY/dumux-repositories/dumux-docker-ci IMAGE_REGISTRY_URL: $CI_REGISTRY/dumux-repositories/dumux-docker-ci
...@@ -15,6 +15,7 @@ workflow: ...@@ -15,6 +15,7 @@ workflow:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
################################################################################ ################################################################################
# Stage 1: configure the test pipeline. # # Stage 1: configure the test pipeline. #
# This creates the .yml to be used for the test pipeline trigger stage. Within # # This creates the .yml to be used for the test pipeline trigger stage. Within #
...@@ -42,8 +43,9 @@ select-pipeline: ...@@ -42,8 +43,9 @@ select-pipeline:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: manual when: manual
################################################################################### ###################################################################################
# Stage 2: trigger the test pipelines # # Stage 2: trigger the Dumux test pipelines #
# In this stage, we trigger the test pipeline with different configurations, i.e. # # In this stage, we trigger the test pipeline with different configurations, i.e. #
# different Dune versions, compilers, etc. Within merge requests, we create three # # different Dune versions, compilers, etc. Within merge requests, we create three #
# test pipelines including two different compilers and a full and minimal setup # # test pipelines including two different compilers and a full and minimal setup #
...@@ -62,7 +64,7 @@ select-pipeline: ...@@ -62,7 +64,7 @@ select-pipeline:
strategy: depend strategy: depend
# trigger for jobs that should not be created in merge requests # trigger for jobs that should not be created in merge requests
.non-merge-request-trigger: .non-mr-trigger:
extends: .base-trigger extends: .base-trigger
rules: rules:
- if: $CI_PIPELINE_SOURCE != "merge_request_event" - if: $CI_PIPELINE_SOURCE != "merge_request_event"
...@@ -87,23 +89,27 @@ full-dune-2.7-clang: ...@@ -87,23 +89,27 @@ full-dune-2.7-clang:
################################## ##################################
# additional scheduled pipelines # # additional scheduled pipelines #
full-dune-master-gcc: full-dune-master-gcc:
extends: .non-merge-request-trigger extends: .non-mr-trigger
variables: variables:
IMAGE: $IMAGE_REGISTRY_URL/full:dune-master-gcc-ubuntu-20.04 IMAGE: $IMAGE_REGISTRY_URL/full:dune-master-gcc-ubuntu-20.04
full-dune-master-clang: full-dune-master-clang:
extends: .non-merge-request-trigger extends: .non-mr-trigger
variables: variables:
IMAGE: $IMAGE_REGISTRY_URL/full:dune-master-clang-ubuntu-20.04 IMAGE: $IMAGE_REGISTRY_URL/full:dune-master-clang-ubuntu-20.04
# ###################################
# # triggers for downstream modules # #########################################################
# trigger lecture: # Stage 3: trigger test pipelines of downstream modules #
# stage: trigger downstream modules #########################################################
# trigger:
# project: dumux-repositories/dumux-lecture # trigger lecture test
# # TODO: replace by master once development in lecture is finished trigger lecture:
# branch: feature/test-dumux-trigger stage: downstream modules
# strategy: depend trigger:
# variables: project: dumux-repositories/dumux-lecture
# DUMUX_BRANCH: $CI_COMMIT_BRANCH # TODO: use master when lecture pipeline is set up
branch: feature/test-dumux-trigger
strategy: depend
variables:
DUMUX_MERGE_REQUEST_BRANCH: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment