Phing > tests > add task for Psalm (https://psalm.dev)

This commit is contained in:
Meritoo
2019-04-18 14:31:31 +02:00
parent f5e8c8c740
commit 0f2c6bb099
3 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ Common and useful classes, methods, exceptions etc.
# 1.0.4
1. PHP Coding Standards Fixer > update configuration
2. Phing > tests > add task for Psalm (https://psalm.dev)
# 1.0.3

View File

@@ -67,6 +67,7 @@ dir.docker.logs = ${dir.docker}/logs/nginx
# - PHPStan
#
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
# --------------------------------------------------------------------------------

View File

@@ -45,6 +45,7 @@
depends="check:cs,
check:cpd,
check:phpstan,
check:psalm,
check:coveralls"
/>
@@ -77,6 +78,11 @@
<exec command="${check.phpstan.command}" passthru="true"/>
</target>
<!-- Run static analysis -->
<target name="check:psalm" depends="build:prepare">
<exec command="${check.psalm.command}" passthru="true"/>
</target>
<!-- Run analysis of code coverage -->
<target name="check:coveralls" depends="test:phpunit">
<exec command="${check.php_coveralls.command}" passthru="true"/>