-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
37 lines (31 loc) · 830 Bytes
/
Makefile
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
.PHONY: install
install:
composer update
.PHONY: qa
qa: phpstan cs
.PHONY: cs
cs:
ifdef GITHUB_ACTION
vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp -q --report=checkstyle src tests | cs2pr
else
vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp src tests
endif
.PHONY: csf
csf:
vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp src tests
.PHONY: phpstan
phpstan:
vendor/bin/phpstan analyse -c phpstan.neon
.PHONY: tests
tests:
vendor/bin/codecept build
vendor/bin/codecept run --debug
.PHONY: coverage
coverage:
ifdef GITHUB_ACTION
vendor/bin/codecept build
vendor/bin/codecept run --coverage-xml
else
vendor/bin/codecept build
vendor/bin/codecept run --coverage-html
endif