-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (41 loc) · 1.13 KB
/
Makefile
File metadata and controls
52 lines (41 loc) · 1.13 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
MAKEFLAGS += --warn-undefined-variables
SHELL := /bin/bash
.EXPORT_ALL_VARIABLES:
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.SILENT:
PHP_VERSION := 8.3
##@
##@ 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
Build/Scripts/additionalTests.sh -s clean
echo "Cleanup finished";
.PHONY: functional-test
functional-test: ##@ Run functional tests
Build/Scripts/runTests.sh -x -p ${PHP_VERSION} -d sqlite -s functional Tests/Functional
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