diff --git a/.scrutinizer.yml b/.scrutinizer.yml index dceeb44..d6892d3 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -90,6 +90,9 @@ coding_style: constants: true_false_null: lower +tools: + external_code_coverage: true + build_failure_conditions: - 'elements.rating(<= D).exists' - 'issues.new.exists' diff --git a/.travis.yml b/.travis.yml index cc2d56a..8340605 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: php cache: directories: - "${HOME}/.composer/cache" + - "${HOME}/.ocularcache" matrix: fast_finish: false @@ -30,6 +31,7 @@ matrix: before_install: - if [ "$XDEBUG_OFF" == "true" ] ; then phpenv config-rm xdebug.ini || true ; fi install: + - if [ ! -f "${HOME}/.ocularcache/ocular.phar" ] ; then wget https://scrutinizer-ci.com/ocular.phar -o ${HOME}/.ocularcache/ocular.phar ; else php ${HOME}/.ocularcache/ocular.phar self-update ; fi - "composer install --no-interaction" - "composer update $COMPOSER_FLAGS --no-interaction" @@ -41,3 +43,4 @@ script: after_success: - "travis_retry php vendor/bin/coveralls" + - php ${HOME}/.ocularcache/ocular.phar code-coverage:upload --repository=g/fitbug/guzzle-swagger-validation-middleware --access-token="${SC_KEY}" --format=php-clover coverage.xml