aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ricardo Martincoski <ricardo.martincoski@gmail.com>2018-10-28 20:58:37 -0300
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2018-11-14 09:18:40 +0100
commitf177fd66e47879a72bb678a2de7ce658410cc4b9 (patch)
tree30d7f98d637f4ba8ade9cc6b61fc67387c9b0099
parent3db2ed427138ff0e20aebcac3f40e5b90a749d08 (diff)
downloadbuildroot-f177fd66e47879a72bb678a2de7ce658410cc4b9.tar.gz
buildroot-f177fd66e47879a72bb678a2de7ce658410cc4b9.tar.bz2
.gitlab-ci.yml: add trigger per type of job
Currently the user has 2 sets of jobs that can be triggered on a GitLab pipeline. - to trigger all defconfigs, all runtime tests and all check-* jobs: $ git tag <name> $ git push gitlab <name> # currently 260 jobs - to trigger only the check-* jobs: $ git push gitlab HEAD:<name> # currently 4 jobs This is not much versatile, so the user ends up hand-editing the .gitlab-ci.yml in order to trigger some subsets, even the common ones, for instance all runtime tests. Add 2 more subsets that can be triggered based on the name of the branch pushed. - to trigger all defconfigs and all check-* jobs: $ git push gitlab HEAD:<name>-defconfigs # currently 192 jobs - to trigger all runtime tests and all check-* jobs: $ git push gitlab HEAD:<name>-runtime-tests # currently 72 jobs Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--.gitlab-ci.yml.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0dfb3537c1..98f9463928 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -51,6 +51,7 @@ check-package:
only:
- triggers
- tags
+ - /-defconfigs$/
script: *defconfig_script
artifacts:
when: always
@@ -67,6 +68,7 @@ check-package:
only:
- triggers
- tags
+ - /-runtime-tests$/
# Keep build directories so the rootfs can be an artifact of the job. The
# runner will clean up those files for us.
# Multiply every emulator timeout by 10 to avoid sporadic failures in
diff --git a/.gitlab-ci.yml.in b/.gitlab-ci.yml.in
index db526c4b5a..ebca29ca1f 100644
--- a/.gitlab-ci.yml.in
+++ b/.gitlab-ci.yml.in
@@ -51,6 +51,7 @@ check-package:
only:
- triggers
- tags
+ - /-defconfigs$/
script: *defconfig_script
artifacts:
when: always
@@ -67,6 +68,7 @@ check-package:
only:
- triggers
- tags
+ - /-runtime-tests$/
# Keep build directories so the rootfs can be an artifact of the job. The
# runner will clean up those files for us.
# Multiply every emulator timeout by 10 to avoid sporadic failures in