Skip to content

Commit

Permalink
Merge branch 'mr/pmderodat/ci-require-issue' into 'master'
Browse files Browse the repository at this point in the history
CI: move require_issue to a dedicated job

See merge request eng/libadalang/libadalang!1504
  • Loading branch information
pmderodat committed Jan 10, 2024
2 parents 81e3331 + 5fe5000 commit 3c104cf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ build_and_test:
- mem:16
stage: single
script:
- require_issue
- !reference [.script_snippets, setup]

# Download the langkit package
Expand Down Expand Up @@ -68,6 +67,11 @@ build_and_test:
junit: xunit_output.xml


check_issue:
extends: .check_issue
stage: single


continuous_builder:
extends: .cb
stage: single
14 changes: 14 additions & 0 deletions utils/gitlab-ci-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@
- (cd /tmp && git clone --depth 1 $ANOD_GIT)
- (cd /it/wave && anod tune --anod-dir /tmp/anod)

.check_issue:
rules: # Launch only on merge requests
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
services:
- image:e3
- cpu:1
interruptible: true
needs: [] # Execute regardless of the other stages
variables:
GIT_STRATEGY: none # do not checkout the current repo, not needed
script:
- require_issue


.cb:
# Items to create continuous builders (CB).
#
Expand Down

0 comments on commit 3c104cf

Please sign in to comment.