From 07b859592fa0e804ecaf6c8432bb1e2d2242e1f1 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Tue, 16 Mar 2021 17:53:43 +0800 Subject: [ci] don't make marge double build. This fixes !18744 --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 774f5dc650..c863323fcd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,14 +47,30 @@ stages: - testing # head.hackage correctness and compiler performance testing - deploy # push documentation -# N.B.Don't run on wip/ branches, instead on run on merge requests. -.only-default: &only-default - only: - - master - - /ghc-[0-9]+\.[0-9]+/ - - merge_requests - - tags - - web +# Note [The CI Story] +# ~~~~~~~~~~~~~~~~~~~ +# +# There are two different types of pipelines: +# +# - marge-bot merges to `master`. Here we perform an exhaustive validation +# across all of the platforms which we support. In addition, we push +# performance metric notes upstream, providing a persistent record of the +# performance characteristics of the compiler. +# +# - merge requests. Here we perform a slightly less exhaustive battery of +# testing. Namely we omit some configurations (e.g. the unregisterised job). +# These use the merge request's base commit for performance metric +# comparisons. +# + +workflow: + # N.B. Don't run on wip/ branches, instead on run on merge requests. + rules: + - if: $CI_MERGE_REQUEST_ID + - if: $CI_COMMIT_TAG + - if: '$CI_COMMIT_BRANCH == "master"' + - if: '$CI_COMMIT_BRANCH =~ /ghc-[0-9]+\.[0-9]+/' + - if: '$CI_PIPELINE_SOURCE == "web"' .nightly: &nightly only: -- cgit v1.2.1