Skip to content

Commit 34bd369

Browse files
authored
Skip production examples (#90)
Signed-off-by: Jeremy Parr-Pearson <jeremy.parr-pearson@improving.com>
1 parent 49c478f commit 34bd369

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,19 @@ all-tests:
210210
$(MAKE) stop
211211
$(MAKE) clean
212212

213-
# Run all Spring Data Valkey examples
213+
# Examples that require a production environment (e.g., AWS cluster) and cannot run locally
214+
SKIP_EXAMPLES := boot-iam-auth
215+
216+
# Run all Spring Data Valkey examples (skipping those requiring prod environment)
214217
examples:
215218
$(MAKE) start
216219
sleep 1
217220
@for example_dir in examples/*/; do \
218221
example=$$(basename "$$example_dir"); \
222+
if echo "$(SKIP_EXAMPLES)" | grep -qw "$$example"; then \
223+
echo "=== Skipping $$example (requires prod environment) ==="; \
224+
continue; \
225+
fi; \
219226
echo "=== Running $$example example ==="; \
220227
./mvnw -q exec:java -pl examples/$$example || (echo "$$example example failed"; exit 1); \
221228
echo ""; \

0 commit comments

Comments
 (0)