Quick example of Makefile
SHELL := /bin/bash
test: lint cs phpunit-fast
.PHONY: all
lint:
./vendor/bin/parallel-lint --exclude tests/app --exclude vendor .
.PHONY: lint
cs:
./vendor/bin/phpcs --standard=./ruleset.xml --extensions=php
.PHONY: cs
cbf:
./vendor/bin/phpcbf --standard=./ruleset.xml --extensions=php
.PHONY: cbf
phpunit-fast:
./vendor/bin/phpunit --no-coverage
.PHONY: phpunit-fast
metrics:
./vendor/bin/phpunit
./vendor/bin/phpmetrics --quiet --report-html=var/phpmetrics ./src
.PHONY: metrics