Skip to content

Commit

Permalink
Merge pull request #7 from stof/patch-1
Browse files Browse the repository at this point in the history
Fix the scrutinizer coverage upload
  • Loading branch information
xabbuh committed Aug 29, 2015
2 parents 6657e31 + 1e493dd commit 68bc3c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Expand Up @@ -41,5 +41,8 @@ install:

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

after_script:
# PHP 7.0 and HHVM 3.5 are not able to generate code coverage
# Avoid notifying that generating it failed to let other jobs upload it rather than cancelling the Scrutinizer job
- if [[ "$TRAVIS_PHP_VERSION" != "7.0" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

0 comments on commit 68bc3c3

Please sign in to comment.