i have repository on github, php symfony app phpunit test suite (https://github.com/antodippo/ccmusicsearch), , travis ci correctly checking build every time push (https://travis-ci.org/antodippo/ccmusicsearch/builds).
i linked coveralls account travis , github account, , configured .travis.yml file way:
language: php php: - 5.5 - 5.6 before_script: - composer self-update - composer install script: - mkdir -p build/logs - phpunit -c app/phpunit.xml.dist after_success: - bin/coveralls -v
and put lines in phpunit.xml.dist:
<logging> <log type="coverage-clover" target="build/logs/clover.xml"/> </logging>
but coveralls stills says there have been no build (https://coveralls.io/github/antodippo).
what forgetting?
sorry not enough reputation comment. have same issue. on travis ci coverage percent of files, nothing on coveralls.io noticed coveralls saying
we detected repo isn’t badged! grab embed code right, add repo show off code coverage, , when badge live hit refresh button remove message.
i have same message , added badge. looks won't sync
edit :
here did fix
[symfony\component\config\definition\exception\invalidconfigurationexception] coverage_clover xml file not readable
and made coveralls work
-.travis yml
script :
script: - phpunit -c app/ src/ --coverage-clover build/logs/clover.xml after_success: - bin/coveralls -v
-phpunit.xml.dist
:
.... <logging> <log type="coverage-html" target="build/coverage" title="coverage" charset="utf-8" yui="true" highlight="true" lowupperbound="35" highlowerbound="70"/> <log type="coverage-clover" target="build/logs/clover.xml"/> <log type="junit" target="build/logs/junit.xml" logincompleteskipped="false"/> </logging> ...
-created .coveralls.yml
file @ root of sf project :
coverage_clover: build/logs/clover.xml json_path: build/logs/coveralls-upload.json exclude_no_stmt: true
make sure have bin/coveralls
folder @ root of sf project
Comments
Post a Comment