-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (61 loc) · 1.89 KB
/
Copy pathMakefile
File metadata and controls
79 lines (61 loc) · 1.89 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
70
71
72
73
74
75
76
77
78
79
MAKEFLAGS += --warn-undefined-variables
SHELL := /bin/bash
.EXPORT_ALL_VARIABLES:
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.SILENT:
# use the rest as arguments for "run"
_ARGS := $(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(_ARGS):;@:)
PHP_VERSION := 8.4
##@
##@ Commands for local task
##@
.PHONY: install
install: ##@ Composer install
echo "Installed build tools started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s composerInstall
echo "Installed build tools finished"
.PHONY: cleanup
cleanup: ##@ Cleanup
echo "Cleanup started"
Build/Scripts/runTests.sh -s clean
echo "Cleanup finished";
.PHONY: cleanTests
cleanTests: ##@ Clean test files but leave cache files
echo "cleanTests started"
Build/Scripts/runTests.sh -s cleanTests
echo "cleanTests finished";
.PHONY: phpstan
phpstan: ##@ Run functional tests
echo "Checking with phpstan started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s phpstan -- $(_ARGS)
echo "Checking with phpstan finished"
.PHONY: cgl
cgl: ##@ Coding guideline check with
echo "Coding guideline check with php-cs-fixer started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s cgl -n
echo "Coding guideline check with php-cs-fixer finished"
.PHONY: functional-tests
functional-tests: ##@ Execute functional tests
echo "Functional tests started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s functional Tests/Functional
echo "Functional tests finished"
help:
@printf "\nUsage: make \033[32m<command>\033[0m\n"
grep -F -h "##@" $(MAKEFILE_LIST) | \
grep -F -v grep -F | \
grep -F -v awk -F | \
awk 'BEGIN {FS = ":*[[:space:]]*##@[[:space:]]*"}; \
{ \
if ($$2 == "") \
printf ""; \
else if ($$0 ~ /^#/) \
printf "\n%s\n\n", $$2; \
else if ($$1 == "") \
printf " %-30s%s\n", "", $$2; \
else \
printf " \033[32m%-30s\033[0m %s\n", $$1, $$2; \
}'
.DEFAULT_GOAL := help