mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +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)
|
||||
9. Infection (Mutation Testing Framework) > fix bugs while running (generate proper code coverage, bugs while running
|
||||
tests randomly)
|
||||
10. Phing > php-coveralls > add task
|
||||
|
||||
# 1.0.1
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ dir.docker.logs = ${dir.docker}/logs/nginx
|
||||
# - PHPStan
|
||||
#
|
||||
check.phpstan.command = ./vendor/bin/phpstan analyse
|
||||
check.php_coveralls.command = ./vendor/bin/php-coveralls --ansi -v
|
||||
|
||||
# --------------------------------------------------------------------------------
|
||||
# Testing
|
||||
|
||||
@@ -44,7 +44,8 @@
|
||||
<target name="build:check"
|
||||
depends="check:cs,
|
||||
check:cpd,
|
||||
check:phpstan"
|
||||
check:phpstan,
|
||||
check:coveralls"
|
||||
/>
|
||||
|
||||
<!-- Test target -->
|
||||
@@ -76,6 +77,11 @@
|
||||
<exec command="${check.phpstan.command}" passthru="true"/>
|
||||
</target>
|
||||
|
||||
<!-- Run analysis of code coverage -->
|
||||
<target name="check:coveralls" depends="test:phpunit">
|
||||
<exec command="${check.php_coveralls.command}" passthru="true"/>
|
||||
</target>
|
||||
|
||||
<!-- PHPUnit tests -->
|
||||
<target name="test:phpunit" depends="build:prepare">
|
||||
<exec command="${tests.phpunit.command}" passthru="true"/>
|
||||
|
||||
Reference in New Issue
Block a user