File tree Expand file tree Collapse file tree 5 files changed +26
-3
lines changed Expand file tree Collapse file tree 5 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 6
6
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
7
7
composer.lock
8
8
.php_cs.cache
9
+ coverage.clover
Original file line number Diff line number Diff line change
1
+ tools :
2
+ external_code_coverage :
3
+ timeout : 720
Original file line number Diff line number Diff line change @@ -16,14 +16,20 @@ matrix:
16
16
env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest --prefer-dist"
17
17
18
18
before_script :
19
- # Not using code coverage
19
+ # Remove xdebug at the start
20
20
- phpenv config-rm xdebug.ini
21
21
- pecl install -f mongodb-stable
22
22
- composer config "platform.ext-mongo" "1.6.16"
23
23
- composer self-update
24
24
# To be removed when this issue is resolved: https://github.com/composer/composer/issues/5355
25
25
- if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
26
26
- composer update -v ${COMPOSER_FLAGS}
27
+ # Restore xdebug for code coverage
28
+ - echo "zend_extension=xdebug.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
27
29
28
30
script :
29
- - ./vendor/bin/phpunit
31
+ - ./vendor/bin/phpunit --coverage-clover=coverage.clover
32
+
33
+ after_script :
34
+ - wget https://scrutinizer-ci.com/ocular.phar
35
+ - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ really useful AND stable. Thank you @rcatlin and @matthewfitz !
5
5
6
6
[ ![ MIT license] ( http://img.shields.io/badge/license-MIT-brightgreen.svg )] ( http://opensource.org/licenses/MIT )
7
7
[ ![ 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 )
9
+ [ ![ Latest Stable Version] ( https://poser.pugx.org/doesntmattr/mongodb-migrations/v/stable )] ( https://packagist.org/packages/doesntmattr/mongodb-migrations )
10
+ [ ![ Total Downloads] ( https://poser.pugx.org/doesntmattr/mongodb-migrations/downloads )] ( https://packagist.org/packages/doesntmattr/mongodb-migrations )
8
11
9
12
AntiMattr MongoDB Migrations
10
13
============================
Original file line number Diff line number Diff line change 5
5
<directory >./tests/</directory >
6
6
</testsuite >
7
7
</testsuites >
8
- </phpunit >
8
+
9
+ <filter >
10
+ <whitelist processUncoveredFilesFromWhitelist =" true" >
11
+ <directory suffix =" .php" >src</directory >
12
+ </whitelist >
13
+ <blacklist >
14
+ <directory >vendor</directory >
15
+ <directory >./tests</directory >
16
+ </blacklist >
17
+ </filter >
18
+ </phpunit >
You can’t perform that action at this time.
0 commit comments