Skip to content

Commit

Permalink
Update gitlab-stages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
petrzpav authored Mar 15, 2024
1 parent b4ee34c commit 9ee9896
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions gitlab-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ execute:
- .results/
expire_in: 1 year
rules:
- if: $ACADEMY_FORCE_JOB == "true"
- if: $ACADEMY_FORCE_JOB == "execute"
when: always
- if: $CI_COMMIT_BRANCH == "source"
when: manual
Expand All @@ -222,6 +222,36 @@ execute:
- when: manual
allow_failure: true

test:
image: ${ACADEMY_DOCKER_IMAGE}
stage: run
tags:
- docker
before_script:
- *global_init
script:
- echo '%% job start test %%'
- ${ACADEMY} test
- echo '%% job end test %%'
artifacts:
paths:
- .results/
expire_in: 1 year
rules:
- if: $ACADEMY_FORCE_JOB == "test"
when: always
- if: $CI_COMMIT_BRANCH == "source"
when: manual
- changes:
- ACADEMY_ASSIGN
when: manual
- if: $CI_PIPELINE_IID == "1"
when: manual
- if: $ACADEMY_TEST == "always"
when: always
- when: manual
allow_failure: true

evaluate:
image: ${ACADEMY_DOCKER_IMAGE}
stage: run
Expand All @@ -238,10 +268,12 @@ evaluate:
- .results/
expire_in: 1 year
rules:
- if: $ACADEMY_FORCE_JOB == "true"
- if: $ACADEMY_FORCE_JOB == "evaluate"
when: always
- if: $CI_COMMIT_BRANCH == "source"
when: manual
- if: $CI_COMMIT_BRANCH == "draft"
when: manual
- changes:
- ACADEMY_ASSIGN
when: manual
Expand Down Expand Up @@ -302,6 +334,8 @@ meta:
rules:
- if: $CI_COMMIT_BRANCH == "source"
when: manual
- if: $CI_COMMIT_BRANCH == "draft"
when: manual
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- when: always
Expand Down

0 comments on commit 9ee9896

Please sign in to comment.