-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 815 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 815 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 qa cs csf phpstan tests coverage-clover coverage-html
install:
composer update
qa: phpstan cs
cs:
ifdef GITHUB_ACTION
vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr
else
vendor/bin/codesniffer src tests
endif
csf:
vendor/bin/codefixer src tests
phpstan:
vendor/bin/phpstan analyse -c phpstan.neon src tests/PHPStanRule
tests:
vendor/bin/codecept run
code-coverage:
vendor/bin/codecept run --coverage --coverage-xml --coverage-html
tests-watch:
vendor/bin/tester -s -p php --colors 1 -C tests/cases -w src -w tests/cases
coverage-clover:
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
coverage-html:
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases