Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Enhancement: Add coverage target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 23, 2019
1 parent 08911a0 commit eb77e76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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

fix: vendor/autoload.php ## Fixes code style issues with phpcbf
vendor/bin/phpcbf --standard=PSR2 src

Expand Down

0 comments on commit eb77e76

Please sign in to comment.