mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
Phing > tests > add task for Psalm (https://psalm.dev)
This commit is contained in:
@@ -5,6 +5,7 @@ Common and useful classes, methods, exceptions etc.
|
|||||||
# 1.0.4
|
# 1.0.4
|
||||||
|
|
||||||
1. PHP Coding Standards Fixer > update configuration
|
1. PHP Coding Standards Fixer > update configuration
|
||||||
|
2. Phing > tests > add task for Psalm (https://psalm.dev)
|
||||||
|
|
||||||
# 1.0.3
|
# 1.0.3
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ dir.docker.logs = ${dir.docker}/logs/nginx
|
|||||||
# - PHPStan
|
# - PHPStan
|
||||||
#
|
#
|
||||||
check.phpstan.command = ./vendor/bin/phpstan analyse
|
check.phpstan.command = ./vendor/bin/phpstan analyse
|
||||||
|
check.psalm.command = ./vendor/bin/psalm --report=build/reports/psalm.json
|
||||||
check.php_coveralls.command = ./vendor/bin/php-coveralls --ansi -v
|
check.php_coveralls.command = ./vendor/bin/php-coveralls --ansi -v
|
||||||
|
|
||||||
# --------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
depends="check:cs,
|
depends="check:cs,
|
||||||
check:cpd,
|
check:cpd,
|
||||||
check:phpstan,
|
check:phpstan,
|
||||||
|
check:psalm,
|
||||||
check:coveralls"
|
check:coveralls"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -77,6 +78,11 @@
|
|||||||
<exec command="${check.phpstan.command}" passthru="true"/>
|
<exec command="${check.phpstan.command}" passthru="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- Run static analysis -->
|
||||||
|
<target name="check:psalm" depends="build:prepare">
|
||||||
|
<exec command="${check.psalm.command}" passthru="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- Run analysis of code coverage -->
|
<!-- Run analysis of code coverage -->
|
||||||
<target name="check:coveralls" depends="test:phpunit">
|
<target name="check:coveralls" depends="test:phpunit">
|
||||||
<exec command="${check.php_coveralls.command}" passthru="true"/>
|
<exec command="${check.php_coveralls.command}" passthru="true"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user