-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 604 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 604 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
PHP=php
.PHONY: test
test: phpstan psalm phpunit
.PHONY: clean
clean:
rm -rf tests/var/cache/*
.PHONY: phpstan
phpstan:
$(PHP) vendor/bin/phpstan analyse
.PHONY: psalm
psalm:
$(PHP) vendor/bin/psalm --no-cache
.PHONY: phpunit
phpunit:
$(eval c ?=)
$(PHP) vendor/bin/phpunit $(c)
.PHONY: php-cs-fixer
php-cs-fixer: tools/php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=1 $< fix --config=.php-cs-fixer.dist.php --verbose --allow-risky=yes
.PHONY: tools/php-cs-fixer
tools/php-cs-fixer:
phive install php-cs-fixer
.PHONY: rector
rector:
$(PHP) vendor/bin/rector process > rector.log
make php-cs-fixer