From 4231df7f02f521e804506339dc46356325363a6d Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 1 Jan 2015 17:31:42 +0000 Subject: [PATCH] Send code coverage to scrutinizer Closes #201. --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cd31330f..65e3c376 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,10 @@ sudo: false install: travis_retry composer install --no-interaction --prefer-source -script: vendor/bin/phpunit +script: + - bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi;' + - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi;' + +after_script: + - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;' + - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'