onesky / api-library-php5

PHP5 library for OneSky API
MIT License
19 stars 12 forks source link

Add code coverage badge to project. #18

Closed BernardoSilva closed 9 years ago

BernardoSilva commented 9 years ago

Add project to: https://scrutinizer-ci.com/

Once you added this project need to do those changes:

On .travis.yml add this:

after_script:
    - wget https://scrutinizer-ci.com/ocular.phar
    - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Create new file: .scrutinizer.yml

imports:
    - php

tools:
    external_code_coverage:
        timeout: 1200    # Timeout in seconds.

Add code coverage badge to README.md

[![Code Coverage](https://scrutinizer-ci.com/g/onesky/api-library-php5/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/onesky/api-library-php5/?branch=master)
VLMH commented 9 years ago

Do you mean Travis CI badge?

BernardoSilva commented 9 years ago

@VLMH Added details to ticket :)

VLMH commented 9 years ago

Oh...we use it internally but didn't realize that it's free for open-source project. Thanks and will integrate it shortly

BernardoSilva commented 9 years ago

@VLMH Created a PR #21 that should work once you add the project to scrutinizer-ci

VLMH commented 9 years ago

@BernardoSilva thanks