Skip to content

Commit

Permalink
[CI] Trigger HERO CI on merge request
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskurth committed Jan 10, 2022
1 parent 266efc0 commit 05b2fcc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ variables:
TRIPLE: riscv32-iis-llvm
LLVM_VERSION: 12.0.1

workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
when: never # avoid duplicate branch and merge request pipelines
- if: '$CI_COMMIT_BRANCH'

stages:
- tools
- build
Expand Down Expand Up @@ -97,6 +104,20 @@ snitch-runtime-banshee:
- make -j`nproc`
- ctest -j`nproc`

hero:
stage: test
needs: []
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
trigger:
project: hero/hero
inherit:
variables: false
variables:
DOWNSTREAM: "true"
SUBMODULE_NAME: $CI_PROJECT_NAME
SUBMODULE_COMMIT_SHA: $CI_COMMIT_SHA

########################################
## Package stage
########################################
Expand Down

0 comments on commit 05b2fcc

Please sign in to comment.