From 083b04663faf31cfb7e351b43545cbed6e19e62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 26 Oct 2019 00:29:43 +0200 Subject: [PATCH] Enhancement: Add coverage target to Makefile --- .gitignore | 1 + Makefile | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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