Skip to content

Commit

Permalink
send coverage report to Scrutinizer CI only once
Browse files Browse the repository at this point in the history
With this change, the code coverage report should only be sent once to
the Scrutinizer CI service (after the build with PHP 5.6 has finished).
  • Loading branch information
xabbuh committed Oct 8, 2015
1 parent 859b799 commit f1c6b13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ before_install:

install: composer update $COMPOSER_FLAGS --prefer-dist

script: phpunit --coverage-clover=coverage.clover
script: if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then phpunit --coverage-clover=coverage.clover; else phpunit; fi

after_script:
- if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

0 comments on commit f1c6b13

Please sign in to comment.