From 92c08b63d73f8ff191951334ec81e5cdd56f55c1 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 5 Oct 2015 18:12:32 +0100 Subject: [PATCH] Only run coverage on 5.6 --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5f674f8..cc06391f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,9 +12,9 @@ sudo: false install: travis_retry composer install --no-interaction --ignore-platform-reqs --no-scripts --prefer-source script: - - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" || "$TRAVIS_PHP_VERSION" == "7.0" ]; then vendor/bin/phpunit; fi;' - - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "7.0" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi;' + - if [ "$TRAVIS_PHP_VERSION" != "5.6" ]; then vendor/bin/phpunit; fi + - if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi after_script: - - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;' - - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "7.0" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;' + - if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi + - if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi