From f02c25a01c692e42095eed24c233f3e2d8ff9894 Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 8 Dec 2021 07:33:22 -0500 Subject: [PATCH] don't bother with clippy after merge to main --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f5277f0..1aef5266 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,10 @@ clippy: - cargo clippy # Only run clippy on non-protected branches, for development rules: + - if: $CI_COMMIT_TAG + when: never + - if: $CI_MERGE_REQUEST_IID + when: never - if: $CI_COMMIT_REF_PROTECTED == "false" ############# Unit Testing @@ -31,8 +35,8 @@ clippy: # Only do tests for tags, protected branches, or merge requests rules: - if: $CI_COMMIT_TAG - - if: $CI_COMMIT_REF_PROTECTED == "true" - if: $CI_MERGE_REQUEST_IID + - if: $CI_COMMIT_REF_PROTECTED == "true" test_linux_amd64: stage: test