From 01b975a74aa593a39cbbfa5edbe67e25b2b73484 Mon Sep 17 00:00:00 2001 From: Scott Aubrey Date: Thu, 9 Jan 2025 15:03:28 +0000 Subject: [PATCH] introduce a separate make target to setup the slow test environment --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index d22a2040..d4ccba7d 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,16 @@ .PHONY: dev -dev: bring-up-app-and-queue +dev: bring-up-app-and-queue-watcher docker compose logs --follow -.PHONY: bring-up-app-and-queue -bring-up-app-and-queue: config.php +.PHONY: bring-up-app-and-queue-watcher +bring-up-app-and-queue-watcher: config.php docker compose up --wait +.PHONY: bring-up-app-without-queue-watcher +bring-up-app-without-queue-watcher: config.php + docker compose up app --wait + docker compose down queue-watcher + .PHONY: check check: static-analysis test @@ -16,13 +21,11 @@ static-analysis: docker compose run --rm --no-deps app vendor/bin/phpstan analyse .PHONY: test -test: bring-up-app-and-queue +test: bring-up-app-and-queue-watcher docker compose exec app vendor/bin/phpunit .PHONY: all-tests -all-tests: config.php - docker compose up app --wait - docker compose down queue-watcher +all-tests: bring-up-app-without-queue-watcher docker compose exec app bash project_tests.sh .PHONY: stop