-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 672 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 672 Bytes
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
.PHONY: install qa cs csf phpstan tests coverage
install:
composer update
qa: phpstan cs
cs:
ifdef GITHUB_ACTION
vendor/bin/phpcs src tests --standard=ruleset.xml --report=checkstyle
else
vendor/bin/phpcs src tests --standard=ruleset.xml
endif
csf:
vendor/bin/phpcbf src tests --standard=ruleset.xml
phpstan:
vendor/bin/phpstan analyse -c phpstan.neon
tests:
vendor/bin/tester -s -p php --colors 1 -C tests/cases
coverage:
ifdef GITHUB_ACTION
vendor/bin/tester -s -p php --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
else
vendor/bin/tester -s -p php --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases
endif