-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathMakefile
More file actions
86 lines (65 loc) · 2.09 KB
/
Copy pathMakefile
File metadata and controls
86 lines (65 loc) · 2.09 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
80
81
82
83
84
85
86
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"
echo "Checking with phpstan finished"
.PHONY: functional-test
functional-test: ##@ Run functional tests
echo "Functional tests started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -d sqlite -s functional Tests/Functional
echo "Functional tests finished"
.PHONY: unit-test
unit-test: ##@ Run unit tests
echo "Unit tests started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s unit Tests/Unit
echo "Unit tests finished"
.PHONY: npm-update
npm-update:
echo "Npm update started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s npm update
echo "Npm update finished"
.PHONY: npm-install
npm-install:
echo "Npm install started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s npm install
echo "Npm install finished"
.PHONY: npm-build
npm-build:
echo "Npm build started"
Build/Scripts/runTests.sh -p ${PHP_VERSION} -s npm run build
echo "Npm build finished"