Skip to content

Commit 2a53448

Browse files
committed
Merge branch 'topic/gitlab-coverage' into 'master'
Trigger coverage jobs on scheduled pipelines See merge request eng/ide/ada_language_server!2034
2 parents 90485f9 + 1e62b9a commit 2a53448

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ include:
4848
# with the build job.
4949
needs: []
5050
stage: test
51+
rules:
52+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
53+
- if: $CI_PIPELINE_SOURCE == "schedule"
5154

5255
# Testing of the VSCode extension
5356
- component: $CI_SERVER_FQDN/eng/gitlab-templates/test@~latest
@@ -139,7 +142,17 @@ als-cov:linux:
139142
- coverage/cobertura.xml
140143
- coverage/xml/
141144

145+
build:linux:
146+
rules:
147+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
148+
# Enable just the linux build in scheduled pipelines for TypeScript coverage
149+
- if: $CI_PIPELINE_SOURCE == "schedule"
150+
142151
vscode-extension:linux:
152+
rules:
153+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
154+
# Trigger just the Linux coverage run in scheduled pipelines
155+
- if: $CI_PIPELINE_SOURCE == "schedule"
143156
after_script:
144157
# Source the env prepared by generic_anod_ci
145158
- cat /tmp/ci_env.sh

0 commit comments

Comments
 (0)