Makefile 1007 B

123456789101112131415161718192021222324252627282930313233343536
  1. export PHPDOCUMENTOR_VERSION := v3.0.0-rc
  2. export PHPSTAN_VERSION := 0.12.59
  3. vendor: composer.json
  4. composer install
  5. vendor/bin/phpstan: vendor
  6. curl -sfL https://github.com/phpstan/phpstan/releases/download/$(PHPSTAN_VERSION)/phpstan.phar -o vendor/bin/phpstan
  7. chmod +x vendor/bin/phpstan
  8. vendor/bin/phpdoc: vendor
  9. curl -sfL https://github.com/phpDocumentor/phpDocumentor/releases/download/$(PHPDOCUMENTOR_VERSION)/phpDocumentor.phar -o vendor/bin/phpdoc
  10. chmod +x vendor/bin/phpdoc
  11. test: vendor
  12. vendor/bin/phpunit
  13. .PHONY: test
  14. fmt: vendor
  15. vendor/bin/php-cs-fixer fix -v --using-cache=no .
  16. .PHONY: fmt
  17. fmtcheck: vendor
  18. vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no .
  19. .PHONY: fmtcheck
  20. phpdoc: vendor/bin/phpdoc
  21. vendor/bin/phpdoc
  22. phpstan: vendor/bin/phpstan
  23. php -d memory_limit=512M vendor/bin/phpstan analyse lib tests
  24. .PHONY: phpstan
  25. phpstan-baseline: vendor/bin/phpstan
  26. php -d memory_limit=512M vendor/bin/phpstan analyse lib tests --generate-baseline
  27. .PHONY: phpstan-baseline