Skip to content

Commit b7f54ea

Browse files
authored
push code coverage to scrutinizer (#19)
* push code coverage to scrutinizer
1 parent 653f237 commit b7f54ea

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ checks:
2525
fix_identation_4spaces: true
2626
fix_doc_comments: true
2727
tools:
28+
external_code_coverage: true
2829
php_code_sniffer:
2930
config:
3031
standard: PSR2

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ matrix:
2727
- php: nightly
2828

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

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

3736
script:
38-
- vendor/bin/phpunit
37+
- vendor/bin/phpunit --coverage-clover=coverage.clover
3938
- vendor/bin/phpstan analyse
39+
40+
after_script:
41+
- wget https://scrutinizer-ci.com/ocular.phar
42+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 commit comments

Comments
 (0)