diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-06-10 16:41:59 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-06-10 16:56:45 -0500 |
commit | d3b5078ecc9f12cb43e237c5deadffc81be06a6f (patch) | |
tree | 0c10d3da5b15366b3471cf098e7cd863445f7cda /.gitlab-ci.yml | |
parent | 997764b23257f0dae48cc87ced3d1ed2acd975df (diff) | |
download | librsvg-d3b5078ecc9f12cb43e237c5deadffc81be06a6f.tar.gz |
CI: use a workflow, copied from at-spi2-core
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/707>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e9af15b3..75bb40a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,16 @@ include: - local: 'ci/container_builds.yml' +# Enable merge request pipelines and avoid duplicate pipelines +# https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines +workflow: + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" + when: never + - if: '$CI_COMMIT_TAG' + - if: '$CI_COMMIT_BRANCH' + variables: LIBRSVG_DEBUG: "yes" # Turn compiler warnings into errors @@ -344,6 +354,7 @@ distcheck: - '.cache' needs: - job: check + artifacts: false tags: # FIXME: remove this once the runners get CentOS upgraded # see https://gitlab.gnome.org/GNOME/librsvg/-/issues/848 |