Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
17 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
.PHONY: qa lint cs csf phpstan tests coverage | ||
.PHONY: install qa cs csf phpstan tests coverage-clover coverage-html | ||
|
||
all: | ||
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs | ||
install: | ||
composer update | ||
|
||
vendor: composer.json composer.lock | ||
composer install | ||
qa: phpstan cs | ||
|
||
qa: lint phpstan cs | ||
|
||
lint: vendor | ||
vendor/bin/linter src tests | ||
|
||
cs: vendor | ||
cs: | ||
vendor/bin/codesniffer src tests | ||
|
||
csf: vendor | ||
csf: | ||
vendor/bin/codefixer src tests | ||
|
||
phpstan: vendor | ||
phpstan: | ||
vendor/bin/phpstan analyse -l max -c phpstan.neon src | ||
|
||
tests: vendor | ||
tests: | ||
vendor/bin/tester -s -p php --colors 1 -C tests/cases | ||
|
||
coverage: vendor | ||
coverage-clover: | ||
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases | ||
|
||
coverage-html: | ||
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters