Skip to content

Commit

Permalink
Push code coverage to scrutinizer (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleBooth committed Oct 15, 2016
1 parent b68c749 commit c923a77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: php
cache:
directories:
- "${HOME}/.composer/cache"
- "${HOME}/.ocularcache"

matrix:
fast_finish: false
Expand Down Expand Up @@ -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"

Expand All @@ -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

0 comments on commit c923a77

Please sign in to comment.