Skip to content

Commit

Permalink
Merge pull request #711 from FabioBatSilva/coveralls
Browse files Browse the repository at this point in the history
Coveralls code coverage
  • Loading branch information
beberlei committed Jun 28, 2013
2 parents 4d93a49 + e4bccdc commit 8e1111c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# for php-coveralls
service_name: travis-ci
src_dir: lib
coverage_clover: build/logs/clover.xml
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ before_script:
- composer install --prefer-source --dev

script: phpunit --configuration tests/travis/$DB.travis.xml

after_script:
- php vendor/bin/coveralls -v
2 changes: 2 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Master: [![Build Status](https://secure.travis-ci.org/doctrine/doctrine2.png?bra
2.2: [![Build Status](https://secure.travis-ci.org/doctrine/doctrine2.png?branch=2.2)](http://travis-ci.org/doctrine/doctrine2)
2.1: [![Build Status](https://secure.travis-ci.org/doctrine/doctrine2.png?branch=2.1.x)](http://travis-ci.org/doctrine/doctrine2)

Master: [![Coverage Status](https://coveralls.io/repos/doctrine/doctrine2/badge.png?branch=master)](https://coveralls.io/r/doctrine/doctrine2?branch=master)

[![Latest Stable Version](https://poser.pugx.org/doctrine/orm/v/stable.png)](https://packagist.org/packages/doctrine/orm) [![Total Downloads](https://poser.pugx.org/doctrine/orm/downloads.png)](https://packagist.org/packages/doctrine/orm)


Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"symfony/console": "2.*"
},
"require-dev": {
"symfony/yaml": "2.1"
"symfony/yaml": "2.1",
"satooshi/php-coveralls": "dev-master"
},
"suggest": {
"symfony/yaml": "If you want to use YAML Metadata Mapping Driver"
Expand Down
4 changes: 4 additions & 0 deletions tests/travis/mysql.travis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<var name="tmpdb_port" value="3306"/>
</php>

<logging>
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
</logging>

<testsuites>
<testsuite name="Doctrine ORM Test Suite">
<directory>./../Doctrine/Tests/ORM</directory>
Expand Down
5 changes: 5 additions & 0 deletions tests/travis/pgsql.travis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<var name="tmpdb_name" value="doctrine_tests_tmp" />
<var name="tmpdb_port" value="5432"/>
</php>

<logging>
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
</logging>

<testsuites>
<testsuite name="Doctrine ORM Test Suite">
<directory>./../Doctrine/Tests/ORM</directory>
Expand Down
6 changes: 6 additions & 0 deletions tests/travis/sqlite.travis.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit>

<logging>
<log type="coverage-clover" target="../../build/logs/clover.xml"/>
</logging>

<testsuites>
<testsuite name="Doctrine ORM Test Suite">
<directory>./../Doctrine/Tests/ORM</directory>
</testsuite>
</testsuites>

<groups>
<exclude>
<group>performance</group>
Expand Down

0 comments on commit 8e1111c

Please sign in to comment.