-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 743 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
.DEFAULT_GOAL := help
.PHONY: help
help: ## Show help message
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[$$()% 0-9a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
.PHONY: install
install: ## to setup the dev environment.
composer install
.PHONY: test
test: ## to perform unit tests.
php vendor/bin/phpunit
.PHONY: coverage
coverage: ## to perform unit tests with code coverage.
php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-text
.PHONY: phpstan
phpstan: ## to run PHPStan
php vendor/bin/phpstan analyse
.PHONY: infection
infection: ## to run Infection
php vendor/bin/infection --threads=max