diff --git a/.gitignore b/.gitignore index 7579f74311..2bd1c9943b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.build/ vendor composer.lock diff --git a/Makefile b/Makefile index 5f76478944..ea09c7fcee 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ -.PHONY: build fix help sniff test +.PHONY: build coverage fix help sniff test help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' build: fix test ## Runs fix and test targets +coverage: vendor/autoload.php ## Collects coverage with phpunit + vendor/bin/phpunit --coverage-text --coverage-clover=.build/logs/clover.xml + fix: vendor/autoload.php ## Fixes code style issues with phpcbf vendor/bin/phpcbf --standard=PSR2 src