I have a repository on Github, a PHP Symfony app with a PHPunit test suite (https://github.com/antodippo/ccmusicsearch), and Travis CI is correctly checking the build every time I push (https://travis-ci.org/antodippo/ccmusicsearch/builds).
I linked to a Coveralls account to my Travis and Github account, and I configured my .travis.yml file this 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 I put this lines in my phpunit.xml.dist:
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
but Coveralls stills says that there have been no build (https://coveralls.io/github/antodippo).
What am I forgetting?
The problem was that with that phpunit.xml.dist configuration the clover.xml file was created in /app/builds/logs/clover.xml. So I changed phpunit script in .travis.yml this way:
phpunit --coverage-clover build/logs/clover.xml -c app
so the file is generated correctly in /app/builds/logs/clover.xml, and Coveralls now works fine.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments