forked from mll-lab/graphql-php-scalars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (24 loc) · 873 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
32
.PHONY: it
it: stan test normalize
.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: setup
setup: build vendor ## Set up the project
.PHONY: build
build: ## Build the dev container
docker-compose build
.PHONY: shell
shell: ## Jump into a shell in the php container
docker-compose run php bash
.PHONY: stan
stan: ## Run static analysis
docker-compose run php vendor/bin/phpstan analyse --memory-limit=2048M
.PHONY: test
test: ## Run PHPUnit tests
docker-compose run php vendor/bin/phpunit
.PHONY: normalize
normalize: ## Normalize composer.json
docker-compose run php composer normalize
vendor: composer.json ## Install dependencies through composer
docker-compose run php composer install