Don't use separate file for uploading code coverage

This commit is contained in:
Hans Ott 2016-09-19 08:29:46 +02:00
parent abf471b40f
commit ef61620266
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +0,0 @@
set -x
if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' && "$TRAVIS_PHP_VERSION" != '7.0' ]] ; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi

View File

@ -29,4 +29,8 @@ script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- sh .travis.coverage.sh
- |
if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' && "$TRAVIS_PHP_VERSION" != '7.0' ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi