Skip to content

Commit

Permalink
Various CI cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
pmderodat committed Oct 25, 2023
1 parent 2eb7dfa commit 4b6625a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
include:
- local: utils/gitlab-ci-common.yml

workflow:
rules:
# To avoid running too many pipelines, restrict the times we run one:

# Run "trigger" pipelines
- if: '$CI_PIPELINE_SOURCE == "pipeline"'

# Run pipelines triggered by a merge request creation/update
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'

# Run for pushes to a branch *except* if there is also a merge request for
# it.
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
when: never
- if: '$CI_COMMIT_BRANCH'


variables:
UPSTREAM_PROJECT : eng/libadalang/langkit
Expand All @@ -43,15 +27,16 @@ build_and_test:
when: never
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^sync\//
when: never
# This shouldn't trigger from the upstream
- if: $CI_PIPELINE_SOURCE != "pipeline"

# Run this for merge requests only
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
services:
- image:sandbox
- cpu:8
- mem:16
stage: single
script:
- unset GITLAB_TOKEN; require_issue
- require_issue
- !reference [.script_snippets, setup]

# Download the langkit package
Expand Down
1 change: 1 addition & 0 deletions utils/gitlab-ci-common.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Common items to create CIs for Libadalang-related projects

.basic:
interruptible: true
variables:
ADASAT_GIT: https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/eng/libadalang/adasat
ANOD_GIT: https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/eng/it/anod
Expand Down

0 comments on commit 4b6625a

Please sign in to comment.