diff --git a/.travis.yml b/.travis.yml index cc50fee9..a4868e5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,8 @@ script: - phpunit --coverage-text --verbose --coverage-clover=coverage.clover --coverage-html coverage after_script: - - wget https://scrutinizer-ci.com/ocular.phar - - php ocular.phar code-coverage:upload --format=php-clover coverage.clover + - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi; + - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi; - git config --global user.email "travis@travis-ci.org" - git config --global user.name "TravisCI" - cp -R coverage ${HOME}/coverage