-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 869 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 869 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
# Misc
.DEFAULT_GOAL = help
.PHONY : help
## —— Makefile ——————————————————————————————————————————————————————————————
help: ## Outputs this help screen
@grep -E '(^[a-zA-Z0-9\./_ -]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
check-all: phpstan-check rector-check ecs-check phpunit
fix-all: ecs-fix rector-fix
phpstan-check: ## PHPStan analysis
vendor/bin/phpstan
ecs-check: ## ECS analysis
vendor/bin/ecs
rector-check: ## Rector analysis
vendor/bin/rector process --dry-run
ecs-fix: ## ECS fix
vendor/bin/ecs --fix
rector-fix: ## Rector Fix
vendor/bin/rector process
phpunit: ## PHPUnit test
vendor/bin/phpunit ./tests