2021-05-15 00:50:10 +02:00
|
|
|
.PHONY: check
|
2021-05-16 07:47:23 +02:00
|
|
|
check: lint cs tests phpstan
|
2021-05-15 00:50:10 +02:00
|
|
|
|
|
|
|
.PHONY: tests
|
2021-05-16 07:47:23 +02:00
|
|
|
tests: build-abnfgen
|
2021-05-15 00:50:10 +02:00
|
|
|
php vendor/bin/phpunit
|
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
|
|
|
php vendor/bin/parallel-lint --colors \
|
|
|
|
src tests \
|
|
|
|
--exclude tests/PHPStan/Analyser/data \
|
|
|
|
--exclude tests/PHPStan/Rules/Methods/data \
|
|
|
|
--exclude tests/PHPStan/Rules/Functions/data
|
|
|
|
|
|
|
|
.PHONY: cs
|
|
|
|
cs:
|
|
|
|
composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
|
|
|
|
|
|
|
|
.PHONY: cs-fix
|
|
|
|
cs-fix:
|
|
|
|
php build-cs/vendor/bin/phpcbf
|
|
|
|
|
|
|
|
.PHONY: phpstan
|
|
|
|
phpstan:
|
2021-06-11 15:20:59 +02:00
|
|
|
php vendor/bin/phpstan
|
2021-05-15 00:50:10 +02:00
|
|
|
|
|
|
|
.PHONY: build-abnfgen
|
|
|
|
build-abnfgen:
|
|
|
|
./build-abnfgen.sh
|