-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 812 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 812 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
30
31
32
33
34
.PHONY: install
install:
composer update
.PHONY: qa
qa: phpstan cs
.PHONY: cs
cs:
ifdef GITHUB_ACTION
vendor/bin/phpcs -q --report=checkstyle --standard=./ruleset.xml --extensions="php,phpt" src tests | cs2pr
else
vendor/bin/phpcs --standard=./ruleset.xml --extensions="php,phpt" src tests
endif
.PHONY: csf
csf:
vendor/bin/phpcbf --standard=./ruleset.xml --extensions="php,phpt" src tests
.PHONY: phpstan
phpstan:
vendor/bin/phpstan analyse -c phpstan.neon src
.PHONY: tests
tests:
vendor/bin/tester -s -p php --colors 1 -C tests/Cases
.PHONY: coverage
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