* [Buildroot] [git commit] support/scripts/generate-gitlab-ci-yml: make it possible to test multiple defconfigs
@ 2021-12-30 17:41 Yann E. MORIN
0 siblings, 0 replies; only message in thread
From: Yann E. MORIN @ 2021-12-30 17:41 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=65d2f04c012af492a9b9da04dfa3b3cbd20347f1
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Already supported:
- Pushing a branch called "<foo>-defconfigs" tests all defconfigs.
- Pushing a branch called "<foo>-defconfig-<defconfig-name>" will
test one particular defconfig
This commit adds support for:
- Pushing a branch called "<foo>-defconfigs-<pattern>" which will
test all defconfigs whose name start with the pattern. For example
"<foo>-defconfigs-qemu_" will test all Qemu defconfigs
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
support/scripts/generate-gitlab-ci-yml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/support/scripts/generate-gitlab-ci-yml b/support/scripts/generate-gitlab-ci-yml
index 8aaa456b03..3e0c68091b 100755
--- a/support/scripts/generate-gitlab-ci-yml
+++ b/support/scripts/generate-gitlab-ci-yml
@@ -66,6 +66,11 @@ gen_tests() {
(*-defconfigs)
do_defconfigs=base
;;
+ (*-defconfigs-*)
+ pattern=$(echo ${CI_COMMIT_REF_NAME} | sed 's%[^\-]*-defconfigs-\(.*\)%\1%')
+ defconfigs=( $(cd configs; LC_ALL=C ls -1 | grep ^${pattern}) )
+ do_defconfigs=base
+ ;;
(*-*_defconfig)
defconfigs=( "${CI_COMMIT_REF_NAME##*-}" )
do_defconfigs=base
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-30 17:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-30 17:41 [Buildroot] [git commit] support/scripts/generate-gitlab-ci-yml: make it possible to test multiple defconfigs Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.