forked from CodersCare/l10nmgr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 1.22 KB
/
Copy pathMakefile
File metadata and controls
54 lines (40 loc) · 1.22 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
.DEFAULT_GOAL := help
.PHONY: lint fix stan stan-baseline docs_render docs_serve
# help: @ List available tasks on this project
help:
@grep -E '[a-zA-Z\.\-]+:.*?@ .*$$' $(MAKEFILE_LIST)| tr -d '#' | awk 'BEGIN {FS = ":.*?@ "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
# lint: @ Lints all PHP files of the project
lint:
composer ci:php:lint
# fix: @ Adjust the code to the CGL via PHP-CS-Fixer
fix:
composer php:fix
# stan: @ Run PHPStan on the files
stan:
composer ci:php:stan
# rector: @ Run PHPRector on the files
rector:
composer rector
# rector-dry: @ Run PHPRector on the files
rector-dry:
composer rector:dry
# stan-baseline: @ Creates a new PHPStan baseline
stan-baseline:
composer phpstan:baseline
# docs_render: @ Render the documentation
docs_render:
composer typo3:docs:render
# docs_serve: @ Serve the rendered documentation
docs_serve: Documentation-GENERATED-temp
composer typo3:docs:serve
Documentation-GENERATED-temp: docs_render
# test_php_8.1: @ Check the code compatibility with PHP 8.1
test_php_8.1:
composer phpcs:testphp:81
# test_php_8.2: @ Check the code compatibility with PHP 8.2
test_php_8.2:
composer phpcs:testphp:82
unittest:
composer test:unit
functionaltest:
composer test:functional