-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
39 lines (29 loc) · 1.03 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
38
.PHONY: help
help: ## Displays this list of targets with descriptions
@echo "The following commands are available:\n"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: install
install: ## Run rector
Build/Scripts/runTests.sh -s composerUpdate
.PHONY: rector
rector: ## Run rector
Build/Scripts/runTests.sh -s rector
.PHONY: fix-cs
fix-cs: ## Fix PHP coding styles
Build/Scripts/runTests.sh -s cgl
.PHONY: fix
fix: rector fix-cs## Run rector and cgl fixes
.PHONY: phpstan
phpstan: ## Run phpstan tests
Build/Scripts/runTests.sh -s phpstan
.PHONY: phpstan-baseline
phpstan-baseline: ## Update the phpstan baseline
Build/Scripts/runTests.sh -s phpstanBaseline
.PHONY: test
test: fix-cs phpstan test-unit test-functional## Run all tests
.PHONY: test-unit
test-unit: ## Run unit tests
Build/Scripts/runTests.sh -s unit
.PHONY: test-functional
test-functional: ## Run functional tests
Build/Scripts/runTests.sh -s functional -d mysql