Phing > php-coveralls > add task

This commit is contained in:
Meritoo
2019-04-05 20:47:37 +02:00
parent 134a5a0108
commit 4f55f33385
3 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"/>