Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.45 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.45 KB

Codecov PHP Example

Build Status Codecov GitHub issues

https://codecov.io @codecov [email protected]

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>