Skip to content

Commit

Permalink
push code coverage to scrutinizer (php-amqplib#19)
Browse files Browse the repository at this point in the history
* push code coverage to scrutinizer
  • Loading branch information
mihaileu committed Jun 10, 2020
1 parent 653f237 commit b7f54ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ checks:
fix_identation_4spaces: true
fix_doc_comments: true
tools:
external_code_coverage: true
php_code_sniffer:
config:
standard: PSR2
Expand Down
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ matrix:
- php: nightly

before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available";
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/framework-bundle "$SYMFONY_VERSION"; fi
- if [ "$COMPOSER_FLAGS" != "" ]; then composer update --prefer-dist --no-interaction --no-scripts $COMPOSER_FLAGS; fi;

install:
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist --no-interaction

script:
- vendor/bin/phpunit
- vendor/bin/phpunit --coverage-clover=coverage.clover
- vendor/bin/phpstan analyse

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 comments on commit b7f54ea

Please sign in to comment.