File tree 1 file changed +22
-20
lines changed
1 file changed +22
-20
lines changed Original file line number Diff line number Diff line change 1
- .PHONY : qa lint cs csf phpstan tests coverage
1
+ .PHONY : install qa cs csf phpstan tests coverage
2
2
3
- all :
4
- @ $( MAKE ) -pRrq -f $( lastword $( MAKEFILE_LIST ) ) : 2> /dev/null | awk -v RS= -F: ' /^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}} ' | sort | egrep -v -e ' ^[^[:alnum:]] ' -e ' ^$@$$ ' | xargs
3
+ install :
4
+ composer update
5
5
6
- vendor : composer.json composer.lock
7
- composer install
6
+ qa : phpstan cs
8
7
9
- qa : lint phpstan cs
8
+ cs :
9
+ ifdef GITHUB_ACTION
10
+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --colors -nsp -q --report=checkstyle src tests | cs2pr
11
+ else
12
+ vendor/bin/phpcs --standard=ruleset.xml --encoding=utf-8 --colors -nsp src tests
13
+ endif
10
14
11
- lint : vendor
12
- vendor/bin/linter src tests
15
+ csf :
16
+ vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --colors -nsp src tests
13
17
14
- cs : vendor
15
- vendor/bin/codesniffer src tests
18
+ phpstan :
19
+ vendor/bin/phpstan analyse -c phpstan.neon
16
20
17
- csf : vendor
18
- vendor/bin/codefixer src tests
21
+ tests :
22
+ vendor/bin/tester -s -p php --colors 1 -C tests/Cases
19
23
20
- phpstan : vendor
21
- vendor/bin/phpstan analyse -l max -c phpstan.neon src
22
-
23
- tests : vendor
24
- vendor/bin/tester -s -p php --colors 1 -C tests/cases
25
-
26
- coverage : vendor
27
- vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
24
+ coverage :
25
+ ifdef GITHUB_ACTION
26
+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.xml --coverage-src src tests/Cases
27
+ else
28
+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage coverage.html --coverage-src src tests/Cases
29
+ endif
You can’t perform that action at this time.
0 commit comments