-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 832 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 832 Bytes
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
.PHONY: it
it: fix stan test ## Runs all common targets
.PHONY: help
help: ## Displays this list of targets with descriptions
@grep -E '^\.?[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: setup
setup: vendor ## Set up the project
.PHONY: coverage
coverage: vendor ## Collects coverage from running unit tests with phpunit
vendor/bin/phpunit --coverage-text
.PHONY: fix
fix: vendor ## Fix the codestyle
composer normalize
vendor/bin/php-cs-fixer fix
.PHONY: stan
stan: vendor ## Runs a static analysis with phpstan
vendor/bin/phpstan analyse
.PHONY: test
test: vendor ## Runs auto-review, unit, and integration tests with phpunit
vendor/bin/phpunit
vendor: composer.json
composer validate --strict
composer install