-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 936 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: it
it: up vendor stan test ## Run useful checks before commits
.PHONY: help
help: ## Displays this list of targets with descriptions
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: up
up: ## Bring up the docker-compose stack
docker-compose up -d
.PHONY: shell
shell: up ## Open an interactive shell into the php container
docker-compose exec php bash
.PHONY: stan
stan: up ## Runs a static analysis with phpstan
docker-compose exec php composer stan
.PHONY: test
test: up ## Runs tests with phpunit
docker-compose exec php composer test
.PHONY: bench
bench: up ## Run benchmarks
docker-compose exec php composer bench
vendor: up composer.json ## Install composer dependencies
docker-compose exec php composer validate --strict
docker-compose exec php composer install
docker-compose exec php composer normalize