mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Phing > php-coveralls > add task
This commit is contained in:
@@ -14,6 +14,7 @@ Common and useful classes, methods, exceptions etc.
|
|||||||
8. Implement [Psalm](https://github.com/vimeo/psalm)
|
8. Implement [Psalm](https://github.com/vimeo/psalm)
|
||||||
9. Infection (Mutation Testing Framework) > fix bugs while running (generate proper code coverage, bugs while running
|
9. Infection (Mutation Testing Framework) > fix bugs while running (generate proper code coverage, bugs while running
|
||||||
tests randomly)
|
tests randomly)
|
||||||
|
10. Phing > php-coveralls > add task
|
||||||
|
|
||||||
# 1.0.1
|
# 1.0.1
|
||||||
|
|
||||||
|
|||||||
@@ -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.php_coveralls.command = ./vendor/bin/php-coveralls --ansi -v
|
||||||
|
|
||||||
# --------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------
|
||||||
# Testing
|
# Testing
|
||||||
|
|||||||
@@ -44,7 +44,8 @@
|
|||||||
<target name="build:check"
|
<target name="build:check"
|
||||||
depends="check:cs,
|
depends="check:cs,
|
||||||
check:cpd,
|
check:cpd,
|
||||||
check:phpstan"
|
check:phpstan,
|
||||||
|
check:coveralls"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Test target -->
|
<!-- Test target -->
|
||||||
@@ -76,6 +77,11 @@
|
|||||||
<exec command="${check.phpstan.command}" passthru="true"/>
|
<exec command="${check.phpstan.command}" passthru="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- Run analysis of code coverage -->
|
||||||
|
<target name="check:coveralls" depends="test:phpunit">
|
||||||
|
<exec command="${check.php_coveralls.command}" passthru="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- PHPUnit tests -->
|
<!-- PHPUnit tests -->
|
||||||
<target name="test:phpunit" depends="build:prepare">
|
<target name="test:phpunit" depends="build:prepare">
|
||||||
<exec command="${tests.phpunit.command}" passthru="true"/>
|
<exec command="${tests.phpunit.command}" passthru="true"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user