-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (51 loc) · 2.38 KB
/
Copy pathMakefile
File metadata and controls
69 lines (51 loc) · 2.38 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.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: docs
docs: ## Generate projects documentation (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 --fail-on-log
.PHONY: install
install: ## Install all libraries
Build/Scripts/runTests.sh -s composerUpdate
.PHONY: fix-cgl
fix-cgl: ## Fix PHP coding styles
Build/Scripts/runTests.sh -s cgl
.PHONY: fix
fix: fix-cgl## Run all fixes
.PHONY: test-cgl
test-cgl: ## Fix PHP coding styles
Build/Scripts/runTests.sh -s cgl
#.PHONY: test-unit-8-2
#test-unit-8-2: ## Run unit tests with PHP 8.2 (lowest)
# Build/Scripts/runTests.sh -s unit -p 8.2
#.PHONY: test-unit-8-5
#test-unit-8-5: ## Run unit tests with PHP 8.5 (highest supported by TYPO3 14)
# Build/Scripts/runTests.sh -s unit -p 8.5
#.PHONY: test-unit
#test-unit: test-unit-8-2 test-unit-8-5## Run unit tests with PHP 8.2 and 8.5
.PHONY: test-functional-8-2
test-functional-8-2: ## Run functional tests with PHP 8.2 and mariadb (lowest)
Build/Scripts/runTests.sh -s functional -p 8.2 -d mysql
.PHONY: test-functional-8-5
test-functional-8-5: ## Run functional tests with PHP 8.5 and mariadb (highest supported by TYPO3 14)
Build/Scripts/runTests.sh -s functional -p 8.5 -d mysql
.PHONY: test-functional
test-functional: test-functional-8-2 test-functional-8-5## Run functional tests with PHP 8.2 and 8.5
.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: rector
rector: ## Run rector
Build/Scripts/runTests.sh -s composerUpdateRector; Build/Scripts/runTests.sh -s rector
.PHONY: test
#test: test-cgl phpstan test-docs test-unit test-functional## Run all tests
test: test-cgl phpstan rector test-docs test-functional## Run all tests