File tree Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Expand file tree Collapse file tree 1 file changed +22
-12
lines changed Original file line number Diff line number Diff line change 1
- .PHONY : install qa cs csf phpstan tests coverage-clover coverage-html
2
-
1
+ .PHONY : install
3
2
install :
4
3
composer update
5
4
5
+ .PHONY : qa
6
6
qa : phpstan cs
7
7
8
+ .PHONY : cs
8
9
cs :
9
- vendor/bin/codesniffer src tests
10
+ ifdef GITHUB_ACTION
11
+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp -q --report=checkstyle src tests | cs2pr
12
+ else
13
+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp src tests
14
+ endif
10
15
16
+ .PHONY : csf
11
17
csf :
12
- vendor/bin/codefixer src tests
18
+ vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --extensions= " php,phpt " --colors -nsp src tests
13
19
20
+ .PHONY : phpstan
14
21
phpstan :
15
- vendor/bin/phpstan analyse -l 8 - c phpstan.neon src
22
+ vendor/bin/phpstan analyse -c phpstan.neon
16
23
24
+ .PHONY : tests
17
25
tests :
18
- vendor/bin/tester -s -p php --colors 1 -C tests/cases
19
-
20
- coverage-clover :
21
- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
22
-
23
- coverage-html :
24
- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases
26
+ vendor/bin/tester -s -p php --colors 1 -C tests/Cases
27
+
28
+ .PHONY : coverage
29
+ coverage :
30
+ ifdef GITHUB_ACTION
31
+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.xml --coverage-src src tests/Cases
32
+ else
33
+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.html --coverage-src src tests/Cases
34
+ endif
You can’t perform that action at this time.
0 commit comments