diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-09-02 14:14:02 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-28 08:52:55 +0000 |
commit | 2ed296f9d3fb6ca5670cf15597deac39fca9e6b0 (patch) | |
tree | d46565c0595a0403a51df0ad744b8efa2ab479b9 /.gitlab-ci.yml | |
parent | 406ea8849be0450f47d5172d700bf345a467c667 (diff) | |
download | chrome-ec-2ed296f9d3fb6ca5670cf15597deac39fca9e6b0.tar.gz |
gitlab: Only run CI in main and coverage branchesstabilize-quickfix-14909.132.B-main
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 <jbettis@google.com>
Change-Id: I536de3e3fdbca1c48505e61de5737f865bd0e233
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3872545
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
(cherry picked from commit 15612bc4af40cb2a824ff2590508df29f27fbf56)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3922455
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6e7ad4d5a..7a78d3b0d8 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: |