You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1004 B
36 lines
1004 B
export PHPDOCUMENTOR_VERSION := v3.0.0
|
|
export PHPSTAN_VERSION := 0.12.59
|
|
|
|
vendor: composer.json
|
|
composer install
|
|
|
|
vendor/bin/phpstan: vendor
|
|
curl -sfL https://github.com/phpstan/phpstan/releases/download/$(PHPSTAN_VERSION)/phpstan.phar -o vendor/bin/phpstan
|
|
chmod +x vendor/bin/phpstan
|
|
|
|
vendor/bin/phpdoc: vendor
|
|
curl -sfL https://github.com/phpDocumentor/phpDocumentor/releases/download/$(PHPDOCUMENTOR_VERSION)/phpDocumentor.phar -o vendor/bin/phpdoc
|
|
chmod +x vendor/bin/phpdoc
|
|
|
|
test: vendor
|
|
vendor/bin/phpunit
|
|
.PHONY: test
|
|
|
|
fmt: vendor
|
|
vendor/bin/php-cs-fixer fix -v --using-cache=no .
|
|
.PHONY: fmt
|
|
|
|
fmtcheck: vendor
|
|
vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no .
|
|
.PHONY: fmtcheck
|
|
|
|
phpdoc: vendor/bin/phpdoc
|
|
vendor/bin/phpdoc
|
|
|
|
phpstan: vendor/bin/phpstan
|
|
php -d memory_limit=512M vendor/bin/phpstan analyse lib tests
|
|
.PHONY: phpstan
|
|
|
|
phpstan-baseline: vendor/bin/phpstan
|
|
php -d memory_limit=512M vendor/bin/phpstan analyse lib tests --generate-baseline
|
|
.PHONY: phpstan-baseline
|
|
|