Skip to content

Commit f19475a

Browse files
committed
Send code coverage to scrutinizer
1 parent 07c18b8 commit f19475a

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.scrutinizer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tools:
2+
external_code_coverage: true
3+
timeout: 720

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,19 @@ matrix:
1616
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest --prefer-dist"
1717

1818
before_script:
19-
# Not using code coverage
19+
# Remove xdebug at the start
2020
- phpenv config-rm xdebug.ini
2121
- pecl install -f mongodb-stable
2222
- composer config "platform.ext-mongo" "1.6.16"
2323
- composer self-update
2424
# To be removed when this issue is resolved: https://github.com/composer/composer/issues/5355
2525
- if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
2626
- composer update -v ${COMPOSER_FLAGS}
27+
- phpenv config-add xdebug.ini
2728

2829
script:
29-
- ./vendor/bin/phpunit
30+
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
31+
32+
after_script:
33+
- wget https://scrutinizer-ci.com/ocular.phar
34+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ really useful AND stable. Thank you @rcatlin and @matthewfitz !
55

66
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
77
[![Build Status](https://travis-ci.org/doesntmattr/mongodb-migrations.png?branch=master)](https://travis-ci.org/doesntmattr/mongodb-migrations)
8+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/doesntmattr/mongodb-migrations/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/doesntmattr/mongodb-migrations/?branch=master)
89

910
AntiMattr MongoDB Migrations
1011
============================

0 commit comments

Comments
 (0)