aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
from:
to:
context:
space:
mode:
authorGravatar Miroslav Vadkerti <mvadkert@redhat.com> 2025-03-12 15:29:38 +0100
committerGravatar ngompa <ngompa13@gmail.com> 2025-05-01 00:41:01 +0000
commit28f7cf0cf656e6be60018ae88c848841ed96bfbd (patch)
tree0405a9f4d127f8ac5524672063ece4fbbc47b434 /Makefile
parentc3e509d22eb177a1bbf99c4a1e73669048598bfc (diff)
downloadkiwi-descriptions-28f7cf0cf656e6be60018ae88c848841ed96bfbd.tar.gz
kiwi-descriptions-28f7cf0cf656e6be60018ae88c848841ed96bfbd.zip
Split tmt plans into separate zuul jobs
This should improve the experience by having separate clickable links for each test matrix item and see the pass/fail more early. Also make Testing Farm scale better as it uses separate TF requests for testing. Signed-off-by: Miroslav Vadkerti <mvadkert@redhat.com>
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..df63ab8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+.DEFAULT_GOAL := help
+
+# https://www.gnu.org/software/make/manual/html_node/Force-Targets.html#Force-Targets
+.FORCE:
+
+# List of architectures to be tested
+ARCHES = x86_64 aarch64
+
+generate-zuul-config: .FORCE ## Generate zuul configuration from list of tmt plans
+ jinja2 -D arches="$(ARCHES)" -D plans="$$(tmt plan ls | tr '\n' ' ')" .zuul.yaml.j2 -o .zuul.yaml
+
+# See https://www.thapaliya.com/en/writings/well-documented-makefiles/ for details.
+reverse = $(if $(1),$(call reverse,$(wordlist 2,$(words $(1)),$(1)))) $(firstword $(1))
+
+help: .FORCE ## Show this help
+ @awk 'BEGIN {FS = ":.*##"; printf "$(info $(PRELUDE))"} /^[a-zA-Z_/-]+:.*?##/ { printf " \033[36m%-35s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(call reverse, $(MAKEFILE_LIST))