Lines Matching +full:buildroot +full:- +full:pipeline
2 set -e
3 set -o pipefail
15 cat - "${template}" <<-_EOF_
17 # Builds appear on https://gitlab.com/buildroot.org/buildroot/pipelines
25 local -a basics defconfigs runtimes
31 defconfigs=( $(cd configs; LC_ALL=C ls -1 *_defconfig) )
33 runtimes=( $(./support/testing/run-tests -l 2>&1 \
34 | sed -r -e '/^test_run \((.*)\).*/!d; s//\1/' \
38 if [ -n "${CI_COMMIT_TAG}" ]; then
39 # When a tag is added to the Buildroot git tree, we want
41 defconfigs=( $(cd configs; LC_ALL=C ls -1 qemu_*_defconfig) )
61 (*-basics)
66 (*-defconfigs)
69 (*-*_defconfig)
70 defconfigs=( "${CI_COMMIT_REF_NAME##*-}" )
73 (*-runtime-tests)
76 (*-tests.*)
77 runtimes=( $(./support/testing/run-tests -l 2>&1 \
78 | sed -r -e '/^test_run \((.*)\).*/!d; s//\1/' \
80 | grep "^${CI_COMMIT_REF_NAME##*-}")
87 # Retrieve defconfig for test-pkg from the git commit message (if any)
88 if grep -q -E '^test-pkg config:$' <<<"${CI_COMMIT_DESCRIPTION}"; then
89 sed -r -n -e '/^test-pkg config:$/{:a;n;p;ba;}' \
92 if [ ! -s defconfig.frag ]; then
95 # Use --all since we expect the user having already pre-tested the
97 ./utils/test-pkg \
98 --all --prepare-only \
99 --config-snippet defconfig.frag \
100 --build-dir br-test-pkg >&2
101 do_testpkg=( $(ls -1 br-test-pkg/*/.config 2>/dev/null |xargs -r dirname ) )
102 if [ "${#do_testpkg[@]}" -eq 0 ]; then
107 # If nothing else, at least do the basics to generate a valid pipeline
108 if [ -z "${do_defconfigs}" \
109 -a -z "${do_runtime}" \
110 -a -z "${do_testpkg}" \
116 if ${do_basics:-false}; then
118 printf 'check-%s: { extends: .check-%s_base }\n' "${tst}" "${tst}"
122 if [ -n "${do_defconfigs}" ]; then
129 if ${do_runtime:-false}; then
133 if [ -n "${do_testpkg}" ]; then