-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (27 loc) · 1.5 KB
/
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
33
34
35
36
37
help: ## shows this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
vendor: composer.lock
composer install
.PHONY: phpcs-check
phpcs-check: vendor ## run phpcs
vendor/bin/phpcs
.PHONY: phpcs-fix
phpcs-fix: vendor ## run phpcs fixer
vendor/bin/phpcbf
.PHONY: phpstan
phpstan: vendor ## run phpstan static code analyser
vendor/bin/phpstan analyse
.PHONY: psalm
psalm: vendor ## run psalm static code analyser
vendor/bin/psalm
.PHONY: psalm-baseline
psalm-baseline: vendor ## run psalm static code analyser
vendor/bin/psalm --update-baseline --set-baseline=baseline.xml
.PHONY: phpunit
phpunit: vendor ## run phpunit tests
vendor/bin/phpunit --testdox --colors=always -v $(OPTIONS)
.PHONY: static
static: psalm phpstan phpcs-check ## run static analyser
test: phpunit ## run tests
.PHONY: dev
dev: static test ## run dev tools