Codecov PHP Example

https://codecov.io @codecov hello@codecov.io

This repository serves as an example on how to use Codecov Global for PHP.

Travis CI

Add to your .travis.yml file.

after_success:
  - bash <(curl -s https://codecov.io/bash)

All other CI you can simply run bash <(curl -s https://codecov.io/bash).

Private Repos

Add to your .travis.yml file.

after_success:
  - bash <(curl -s https://codecov.io/bash) -t :uuid-repo-token

Or you can set the enviornment variable CODECOV_TOKEN to your token.

View source and lean more about Codecov Global Uploader


Using phpunit.xml.dist?

Start tracking coverage metrics by adding a coverage logger:

...
  <logging>
        <log type="coverage-clover" target="clover.xml"/>
    </logging>
</phpunit>