gitlab-ci: handle single defconfig in script

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Romain Naour <romain.naour@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Yann E. MORIN
2020-09-06 22:12:25 +02:00
parent f307d88774
commit 386f2c620b
2 changed files with 7 additions and 12 deletions

View File

@@ -40,7 +40,13 @@ gen_defconfigs() {
fi
case "${CI_COMMIT_REF_NAME}" in
# For the branch or tag name named *-defconfigs, create a pipeline.
(*-defconfigs) build_defconfigs=true;;
(*-defconfigs)
build_defconfigs=true
;;
(*-*_defconfig)
defconfigs=( "${CI_COMMIT_REF_NAME##*-}" )
build_defconfigs=true
;;
esac
for cfg in "${defconfigs[@]}"; do