-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1.81 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
38
39
40
41
42
43
44
45
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
cs-check: vendor ## run phpcs
vendor/bin/phpcs
.PHONY: phpcs-fix
cs: vendor ## run phpcs fixer
vendor/bin/phpcbf
.PHONY: phpstan
phpstan: vendor ## run phpstan static code analyser
vendor/bin/phpstan analyse
.PHONY: phpstan-baseline
phpstan-baseline: vendor ## run phpstan static code analyser
vendor/bin/phpstan analyse --generate-baseline
.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
XDEBUG_MODE=coverage vendor/bin/phpunit
.PHONY: infection
infection: vendor ## run infection
vendor/bin/infection
.PHONY: static
static: psalm phpstan phpcs-check ## run static analyser
test: phpunit ## run tests
.PHONY: dev
dev: static test ## run dev tools