Skip to content
This repository was archived by the owner on Jul 8, 2018. It is now read-only.

Commit 5ec0e84

Browse files
committed
Add scrutinizer code coverage
1 parent 66e6177 commit 5ec0e84

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.scrutinizer.yml

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

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ before_script:
2727
- composer install
2828

2929
script:
30-
- vendor/bin/phpunit --coverage-text --configuration phpunit.xml
30+
- vendor/bin/phpunit --coverage-text --configuration phpunit.xml --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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Weak-referenced data structures for PHP [![Build Status](https://travis-ci.org/pinepain/php-weak-lib.svg)](https://travis-ci.org/pinepain/php-weak-lib)
1+
# Weak-referenced data structures for PHP
2+
3+
[![Build Status](https://travis-ci.org/pinepain/php-weak-lib.svg)](https://travis-ci.org/pinepain/php-weak-lib)
4+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/pinepain/php-weak-lib/badges/quality-score.png)](https://scrutinizer-ci.com/g/pinepain/php-weak-lib)
5+
[![Code Coverage](https://scrutinizer-ci.com/g/pinepain/php-weak-lib/badges/coverage.png)](https://scrutinizer-ci.com/g/pinepain/php-weak-lib)
26

37
This library is based on [php-weak][php-weak-ext] PHP extension and provides various weak data structures:
48

0 commit comments

Comments
 (0)