Makefile 870 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. PHP_CS_FIXER=php -d zend.enable_gc=0 vendor-bin/php-cs-fixer/vendor/bin/php-cs-fixer
  2. PHPUNIT=php -d zend.enable_gc=0 vendor/bin/phpunit
  3. .DEFAULT_GOAL := help
  4. .PHONY: test tu cs
  5. help:
  6. @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
  7. ##
  8. ## Tests
  9. ##---------------------------------------------------------------------------
  10. test: ## Run all the tests
  11. test: tu
  12. tu: ## Run the tests for the core library
  13. tu: vendor
  14. $(PHPUNIT)
  15. ##
  16. ## Code Style
  17. ##---------------------------------------------------------------------------
  18. cs: ## Run the CS Fixer
  19. cs: vendor
  20. $(PHP_CS_FIXER) fix
  21. ##
  22. ## Rules from files
  23. ##---------------------------------------------------------------------------
  24. vendor: composer.lock
  25. composer install
  26. composer.lock: composer.json
  27. @echo compose.lock is not up to date.