-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (18 loc) · 1.08 KB
/
Makefile
File metadata and controls
21 lines (18 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.DEFAULT_GOAL := help
## —— The Makefile ———————————————————————————————————
.PHONY: help
help: ## Outputs this help screen
@grep -E '(^[a-zA-Z0-9\./_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
## —— ✅ Tests ✅ ————————————————————————————————————————————————————————————————
.PHONY: phpunit
phpunit:
vendor/bin/phpunit
.PHONY: test
test: phpunit ## run all tests
.PHONY: test-coverage
test-coverage: ## run unit tests and create a report
XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html reports/ --coverage-text
## —— ✅ Code Style ✅ ———————————————————————————————————————————————————————————
.PHONY: phpstan
phpstan: ## run phpstan
vendor/bin/phpstan analyse