Skip to content

Commit

Permalink
introduce a separate make target to setup the slow test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaubrey committed Jan 9, 2025
1 parent d61047f commit 01b975a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit 01b975a

Please sign in to comment.