From 4b9242cdc1d1124f5726c1c35a3e5549c063ca3b Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Fri, 2 Sep 2022 14:14:02 -0600 Subject: gitlab: Only run CI in main and coverage branches This workflow rule will prevent this CI config from running unless the branch name is "main" or "coverage". It will have to be cherry-picked into all the other branches to make them stop running sadly. BRANCH=None BUG=b:244766499 TEST=Used yaml validator at https://gitlab.com/zephyr-ec/ec/-/ci/editor?branch_name=main&tab=2 Signed-off-by: Jeremy Bettis Change-Id: I536de3e3fdbca1c48505e61de5737f865bd0e233 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3872545 Reviewed-by: Simon Glass Tested-by: Jeremy Bettis Commit-Queue: Simon Glass Auto-Submit: Jeremy Bettis Commit-Queue: Jeremy Bettis (cherry picked from commit 15612bc4af40cb2a824ff2590508df29f27fbf56) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3960892 Reviewed-by: Al Semjonovs Commit-Queue: Al Semjonovs --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2084f44f93..2642880ce8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,11 @@ image: sjg20/ubuntu-25feb22c # You can update that image using this repo: # https://gitlab.com/zephyr-ec/gitlab-ci-runner/-/tree/main +# Only run on main and coverage branches +workflow: + rules: + - if: ($CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "coverage") + # Change pip's cache directory to be inside the project directory since we can # only cache local items. variables: -- cgit v1.2.1