-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (20 loc) · 675 Bytes
/
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
check: cs stan ## (PHP) Launch all lint tools. A good choice for pre-commit hook
cs: vendor/bin ## (PHP) Code style checker
@echo
./vendor/bin/php-cs-fixer fix -v --dry-run --allow-risky=yes --using-cache=no src/
fix: vendor/bin ## (PHP) Code style fixer
@echo
./vendor/bin/php-cs-fixer fix --verbose --allow-risky=yes src/
stan: vendor/bin ## (PHP) Static analysis
@echo
./vendor/bin/phpstan analyse -l max src
test: unit ## (PHP) Launch all test tools
unit: vendor/bin ## (PHP) Unit tests
@echo
./vendor/bin/phpunit --coverage-text --coverage-html var/coverage-report
infection: vendor/bin
@echo
./vendor/bin/infection
vendor/bin:
@echo
composer install