-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 847 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 847 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
31
32
33
34
35
36
37
38
39
VERBOSITY =
v:
$(eval VERBOSITY := -v)
vv:
$(eval VERBOSITY := -vv)
vvv:
$(eval VERBOSITY := -vvv)
vendor: composer.json
composer install
touch vendor
test: vendor
$(EXEC_PHP) vendor/bin/phpunit $(VERBOSITY)
cs: vendor
$(EXEC_PHP) vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run --diff $(VERBOSITY)
fixcs: vendor
$(EXEC_PHP) vendor/bin/php-cs-fixer fix --allow-risky=yes $(VERBOSITY)
psalm: vendor
$(EXEC_PHP) vendor/bin/psalm $(file)
composer-check-require: vendor
$(EXEC_PHP) vendor/bin/composer-require-checker check $(VERBOSITY)
composer-unused: vendor
composer unused $(VERBOSITY)
composer-validate:
composer validate $(VERBOSITY)
check: test cs psalm composer-check-require composer-unused composer-validate
.PHONY: v vv vvv test cs fixcs psalm composer-check-require composer-unused composer-validate check