From db6d4e0dc62f21f021959548b13458dc9ab00f5c Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sat, 26 Sep 2015 11:25:26 +0100 Subject: [PATCH] Only send data to Scrutinizer only for PHP 5.6 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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