-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
51 lines (39 loc) · 1.48 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
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: help
help: ## Displays this list of targets with descriptions
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: fix ## Run all tests
fix: rector fix-code-style
.PHONY: test ## Run all tests
test: lint code-style phpstan
.PHONY: lint
lint:
Build/Scripts/runTests.sh -s lint
.PHONY: phpstan
phpstan:
Build/Scripts/runTests.sh -s phpstan
.PHONY: phpstanBaseline
phpstanBaseline:
Build/Scripts/runTests.sh -s phpstanBaseline
.PHONY: code-style
code-style:
Build/Scripts/runTests.sh -s cgl -n
.PHONY: fix-code-style
fix-code-style: ## Fix PHP coding style issues
Build/Scripts/runTests.sh -s cgl
.PHONY: install
install: ## Fix PHP coding style issues
Build/Scripts/runTests.sh -s composerUpdate
.PHONY: rector
rector: ## Refactor code using rector
Build/Scripts/runTests.sh -s rector -p 8.2
.PHONY: install-rector
install-rector:
Build/Scripts/runTests.sh -s composerUpdateRector
.PHONY: docs
docs: ## Generate projects docs (from "Documentation" directory)
mkdir -p Documentation-GENERATED-temp
docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
.PHONY: test-docs
test-docs: ## Test the documentation rendering
mkdir -p Documentation-GENERATED-temp
docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation --no-progress --minimal-test