Skip to content

Commit f25e1ff

Browse files
committed
Improve setup
1 parent 757d8c0 commit f25e1ff

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
.PHONY: it help setup up shell stan test
2-
3-
it: up stan test
1+
.PHONY: it
2+
it: stan test
43

4+
.PHONY: help
55
help: ## Displays this list of targets with descriptions
66
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
77

8-
setup: up vendor ## Set up the project
8+
.PHONY: setup
9+
setup: build vendor ## Set up the project
910

11+
.PHONY: build
1012
build: ## Build the dev container
1113
docker-compose build
1214

15+
.PHONY: shell
1316
shell: ## Jump into a shell in the php container
1417
docker-compose run php bash
1518

19+
.PHONY: stan
1620
stan: ## Run static analysis
1721
docker-compose run php vendor/bin/phpstan analyse --memory-limit=2048M
1822

23+
.PHONY: test
1924
test: ## Run PHPUnit tests
2025
docker-compose run php vendor/bin/phpunit
2126

0 commit comments

Comments
 (0)