-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (20 loc) · 971 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: help
.DEFAULT_GOAL := help
PHP = php
PHPUNIT = ${PHP} vendor/bin/phpunit
cs: ## Run ECS Coding Standards analysis
@${PHP} vendor/bin/ecs check
cs-fix: ## Fix ECS Coding Standards
@${PHP} vendor/bin/ecs check --fix
static: ## Run PHPStan static analysis
@${PHP} vendor/bin/phpstan analyse
test: ## Run PHPUnit tests
@${PHPUNIT}
test-coverage: ## Run PHPUnit tests with code coverage
@${PHPUNIT} --coverage-html=var/coverage
########################################################################################################################
# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help:
@echo "\nMakefile is used to run various utilities related to this project\n"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
########################################################################################################################