This repository was archived by the owner on Sep 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 1.4 KB
/
Makefile
File metadata and controls
34 lines (25 loc) · 1.4 KB
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
33
34
help: ## shows this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: phpcs-check
phpcs-check: ## run phpcs
vendor/bin/phpcs
.PHONY: phpcs-fix
phpcs-fix: ## run phpcs fixer
vendor/bin/phpcbf
.PHONY: phpstan
phpstan: ## run phpstan static code analyser
vendor/bin/phpstan analyse
.PHONY: psalm
psalm: ## run psalm static code analyser
vendor/bin/psalm
infection: ## run infection
vendor/bin/infection
.PHONY: phpunit
phpunit: ## run phpunit tests
vendor/bin/phpunit --testdox --colors=always -v $(OPTIONS)
.PHONY: static
static: phpcs-check phpstan psalm ## run static analyser
.PHONY: test
test: phpunit ## run tests
.PHONY: dev
dev: static test infection ## run dev tools