-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
37 lines (28 loc) · 1.13 KB
/
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
28
29
30
31
32
33
34
35
36
37
.DEFAULT_GOAL:=help
.PHONY: dependencies
dependencies:
composer install --no-interaction --no-suggest --no-scripts --ansi
.PHONY: test
test:
vendor/bin/phpunit --testdox --colors=always
vendor/bin/phpunit --testdox --colors=always --group=functional
.PHONY: qa
qa: php-cs-fixer-ci phpstan
.PHONY: php-cs-fixer
php-cs-fixer:
vendor/bin/php-cs-fixer fix --no-interaction --allow-risky=yes --diff --verbose
.PHONY: php-cs-fixer-ci
php-cs-fixer-ci:
vendor/bin/php-cs-fixer fix --dry-run --no-interaction --allow-risky=yes --diff --verbose
PHONY: phpstan
phpstan:
vendor/bin/phpstan analyse --level=max src/
.PHONY: changelog
changelog:
git log $$(git describe --abbrev=0 --tags)...HEAD --no-merges --pretty=format:"* [%h](http://github.com/${TRAVIS_REPO_SLUG}/commit/%H) %s (%cN)"
.PHONY: license
license:
vendor/bin/docheader check --no-interaction --ansi -vvv {src,test}
# Based on https://suva.sh/posts/well-documented-makefiles/
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)