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. PHP Coding Standards Fixer > update configuration
|
||||
2. Phing > tests > add task for Psalm (https://psalm.dev)
|
||||
|
||||
# 1.0.3
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
# --------------------------------------------------------------------------------
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user