Skip to content

Commit

Permalink
ci: Erlaube direkte Ausführung einzelner Docker-Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxG87 committed Dec 22, 2023
1 parent f128b59 commit 97bf295
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ DOCKER_TEST_TAG = $(SERVICE_LC)-$(SERVICE_ID_SHORT).test
CACHEBASE ?= ~/.cache/$(SERVICE).make-cache/
CACHEDIR = $(CACHEBASE)/$(SERVICE_ID_FULL)

# $(CACHEDIR)/run-arch-tests, $(CACHEDIR)/run-python3.8-tests, ...
DOCKER_TESTS_TARGETS := $(addsuffix -tests, $(addprefix $(CACHEDIR)/run-,$(ALL_DOCKER_FILES)))
# run-arch-tests, run-python3.8-tests, ...
DOCKER_TESTS := $(addsuffix -tests, $(addprefix run-,$(ALL_DOCKER_FILES)))

.SECONDARY: # Do not remove intermediate files. We need them for caching!

Expand All @@ -29,7 +29,9 @@ check-linters: | $(CACHEDIR)/check-linters
.PHONY: run-tests
run-tests: run-docker-tests | run-undockered-tests
.PHONY: run-docker-tests
run-docker-tests: | $(DOCKER_TESTS_TARGETS)
run-docker-tests: | $(DOCKER_TESTS)
.PHONY: $(DOCKER_TESTS)
run-%-tests: | $(CACHEDIR)/run-%-tests
.PHONY: run-undockered-tests
run-undockered-tests: | $(CACHEDIR)/run-undockered-tests
.PHONY: get-service-id
Expand Down

0 comments on commit 97bf295

Please sign in to comment.