Send code coverage to scrutinizer

Closes #201.
This commit is contained in:
Graham Campbell
2015-01-01 17:31:42 +00:00
parent 5ae976bc49
commit 4231df7f02

View File

@@ -10,4 +10,10 @@ sudo: false
install: travis_retry composer install --no-interaction --prefer-source 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;'