Skip to content

Commit

Permalink
Merge 5540b86 into 784ebca
Browse files Browse the repository at this point in the history
  • Loading branch information
nubs committed Sep 5, 2014
2 parents 784ebca + 5540b86 commit bebfc47
Show file tree
Hide file tree
Showing 6 changed files with 502 additions and 41 deletions.
4 changes: 4 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
service_name: travis-ci
src_dir: .
coverage_clover: clover.xml
json_path: coveralls-upload.json
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ php:
before_script:
- composer self-update || true
script: ./build.php
after_script: sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then ./vendor/bin/coveralls -v; fi'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# util-php
[![Build Status](http://img.shields.io/travis/dominionenterprises/util-php.svg?style=flat)](https://travis-ci.org/dominionenterprises/util-php)
[![Scrutinizer Code Quality](http://img.shields.io/scrutinizer/g/dominionenterprises/util-php.svg?style=flat)](https://scrutinizer-ci.com/g/dominionenterprises/util-php/)
[![Code Coverage](http://img.shields.io/scrutinizer/coverage/g/dominionenterprises/util-php.svg?style=flat)](https://scrutinizer-ci.com/g/dominionenterprises/util-php/)
[![Code Coverage](http://img.shields.io/coveralls/dominionenterprises/util-php.svg?style=flat)](https://coveralls.io/r/dominionenterprises/util-php)

[![Latest Stable Version](http://img.shields.io/packagist/v/dominionenterprises/util.svg?style=flat)](https://packagist.org/packages/dominionenterprises/util)
[![Total Downloads](http://img.shields.io/packagist/dt/dominionenterprises/util.svg?style=flat)](https://packagist.org/packages/dominionenterprises/util)
Expand Down
3 changes: 3 additions & 0 deletions build.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
exit(1);
}

$cloverCoverage = new PHP_CodeCoverage_Report_Clover();
file_put_contents('clover.xml', $cloverCoverage->process($result->getCodeCoverage()));

$coverageFactory = new PHP_CodeCoverage_Report_Factory();
$coverageReport = $coverageFactory->create($result->getCodeCoverage());
if ($coverageReport->getNumExecutedLines() !== $coverageReport->getNumExecutableLines()) {
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"satooshi/php-coveralls": "~0.6.1",
"squizlabs/php_codesniffer": "~1.5",
"dominionenterprises/dws-coding-standard": "~1.1"
},
Expand Down
Loading

0 comments on commit bebfc47

Please sign in to comment.