mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-11-30 04:29:20 +01:00
31 lines
607 B
Makefile
31 lines
607 B
Makefile
.PHONY: check
|
|
check: lint cs tests phpstan
|
|
|
|
.PHONY: tests
|
|
tests: build-abnfgen
|
|
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:
|
|
php vendor/bin/phpstan analyse -l 5 -c phpstan.neon src tests
|
|
|
|
.PHONY: build-abnfgen
|
|
build-abnfgen:
|
|
./build-abnfgen.sh
|