From 0a085de749dc737e75a1a61d4750efd8047092f4 Mon Sep 17 00:00:00 2001 From: Jeremy Parr-Pearson Date: Mon, 1 Jun 2026 08:40:19 -0700 Subject: [PATCH] Skip production examples Signed-off-by: Jeremy Parr-Pearson --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ef2ca1eb..5ed4cd60 100644 --- a/Makefile +++ b/Makefile @@ -210,12 +210,19 @@ all-tests: $(MAKE) stop $(MAKE) clean -# Run all Spring Data Valkey examples +# Examples that require a production environment (e.g., AWS cluster) and cannot run locally +SKIP_EXAMPLES := boot-iam-auth + +# Run all Spring Data Valkey examples (skipping those requiring prod environment) examples: $(MAKE) start sleep 1 @for example_dir in examples/*/; do \ example=$$(basename "$$example_dir"); \ + if echo "$(SKIP_EXAMPLES)" | grep -qw "$$example"; then \ + echo "=== Skipping $$example (requires prod environment) ==="; \ + continue; \ + fi; \ echo "=== Running $$example example ==="; \ ./mvnw -q exec:java -pl examples/$$example || (echo "$$example example failed"; exit 1); \ echo ""; \