2019-08-25 09:46:00 +02:00
|
|
|
.PHONY: build fix help sniff test
|
2019-08-25 09:44:47 +02:00
|
|
|
|
2019-08-25 09:46:00 +02:00
|
|
|
help:
|
|
|
|
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
2019-08-24 09:41:55 +02:00
|
|
|
|
2019-08-25 09:46:00 +02:00
|
|
|
build: fix test ## Runs fix and test targets
|
|
|
|
|
|
|
|
fix: vendor/autoload.php ## Fixes code style issues with phpcbf
|
2019-08-24 13:55:43 +02:00
|
|
|
vendor/bin/phpcbf --standard=PSR2 src
|
|
|
|
|
2019-08-25 09:46:00 +02:00
|
|
|
sniff: vendor/autoload.php ## Detects code style issues with phpcs
|
2014-03-10 09:44:13 -04:00
|
|
|
vendor/bin/phpcs --standard=PSR2 src -n
|
|
|
|
|
2019-08-25 09:46:00 +02:00
|
|
|
test: vendor/autoload.php ## Runs tests with phpunit
|
2019-10-26 00:22:27 +02:00
|
|
|
vendor/bin/phpunit
|
2019-08-24 09:46:06 +02:00
|
|
|
|
|
|
|
vendor/autoload.php:
|
|
|
|
composer install --no-interaction --prefer-dist
|