Travis CI works correctly, but Coveralls doesn't see the builds

antodippo

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?

antodippo

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.

edited at
0

Comments

0 comments
Login to comment

Related

Travis CI builds app but doesn't deploy to Surge.sh

Travis CI, Atoum and Coveralls for a PHP project

Travis CI doesn't deploy to Azure from GitHub the war file correctly

Authenticate at Github via Travis-CI using httr as well as locally (local works, remote doesn't)

Travis CI - doesn't deploy build folder?

Travis CI doesn't show public repository?

Conditional Commands in tox? (tox, travis-ci, and coveralls)

Travis-CI builds on schedule

restarting builds with travis ci api

Cache Brew builds with travis ci

Github doesn't display new travis builds near the commits

using-declaration doesn't works correctly

phpexcel - looping doesn't works correctly

Travis CI build doesn't work with Android Constraint Layout

Travis-CI doesn't let me rebuild a test

Travis CI build doesn't find Android Constraint Layout

Travis-ci doesn't display organization's repo

Composer autoload doesn't work for tests in Travis CI

Postgresql database doesn't exist in travis ci after being created

Travis CI C++ Build succeed but travis exited with 1 and doesn't passes the test

Trouble using sed to replace contents of .coveralls.yml configuration in Travis-CI

Coveralls plugin for jenkins CI?

#Requires doesn't see the module, Import-Module works

JQuery converting anonymous function to named function doesn't works correctly

Search bar works correctly but table doesn't show the results

Laravel's Helpers doesn't works correctly in some contexts/classes

App works fine in simulator but doesn't function correctly on phone

Shell script works manually but doesn't work correctly in Crontab

Travis CI creates two builds for each Github commit push