emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 57ae3f2: test/infra/gitlab-ci.yml: run only for tags and some bra


From: Teodor Zlatanov
Subject: master 57ae3f2: test/infra/gitlab-ci.yml: run only for tags and some branches
Date: Sat, 16 Jan 2021 13:02:13 -0500 (EST)

branch: master
commit 57ae3f29af160d08a3a3568a7d969adecd25bcb7
Author: Ted Zlatanov <tzz@lifelogs.com>
Commit: Ted Zlatanov <tzz@lifelogs.com>

    test/infra/gitlab-ci.yml: run only for tags and some branches
---
 test/infra/gitlab-ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml
index d893455..f9c0e0c 100644
--- a/test/infra/gitlab-ci.yml
+++ b/test/infra/gitlab-ci.yml
@@ -26,10 +26,19 @@
 
 # Never run merge request pipelines, they usually duplicate push pipelines
 # see 
https://docs.gitlab.com/ee/ci/yaml/README.html#common-if-clauses-for-rules
+
+# Rules: always run tags and branches named master*, emacs*, feature*, fix*
+# Test that it triggers by pushing a tag: `git tag mytag; git push origin 
mytag`
+# Test that it triggers by pushing to: feature/emba, feature1, master, 
master-2, fix/emba, emacs-299, fix-2
+# Test that it doesn't trigger by pushing to: scratch-2, scratch/emba, 
oldbranch, dev
 workflow:
   rules:
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
       when: never
+    - if: '$CI_COMMIT_TAG'
+      when: always
+    - if: '$CI_COMMIT_BRANCH !~ /^(master|emacs|feature|fix)/'
+      when: never
     - when: always
 
 variables:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]