Skip to content

Commit

Permalink
Merge pull request #105 from djlambert/total-recall
Browse files Browse the repository at this point in the history
Combine coverage results
  • Loading branch information
sadortun committed Nov 5, 2015
2 parents 80d7599 + caa6319 commit bc44d95
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
@@ -1,2 +1,2 @@
coverage_clover: ./build/logs/clover-*.xml
coverage_clover: ./build/logs/clover.xml
src_dir: lib
29 changes: 12 additions & 17 deletions .travis.yml
@@ -1,4 +1,5 @@
language: php

sudo: false

php:
Expand All @@ -10,37 +11,31 @@ php:
- hhvm

env:
- DB=mysql ORM=2.3
- DB=mysql ORM=2.4
- DB=mysql ORM=2.5
- DB=pgsql ORM=2.3
- DB=pgsql ORM=2.4
- DB=pgsql ORM=2.5
- ORM=2.3
- ORM=2.4
- ORM=2.5

before_script:
- composer self-update
- cp ./tests/travis/composer.orm$ORM.json ./composer.json
- composer install --prefer-source
- mkdir -p ./build/coverage

script:
- ./vendor/bin/phpunit -v -c ./tests/travis/travis.$DB.xml --coverage-clover ./build/logs/clover-$TRAVIS_PHP_VERSION-$ORM-$DB.xml
- ./vendor/bin/phpunit -v -c ./tests/travis/travis.pgsql.xml --coverage-php ./build/coverage/coverage-pgsql-$TRAVIS_PHP_VERSION-$ORM.cov
- ./vendor/bin/phpunit -v -c ./tests/travis/travis.mysql.xml --coverage-php ./build/coverage/coverage-mysql-$TRAVIS_PHP_VERSION-$ORM.cov

after_script:
- ./vendor/bin/phpcov merge --clover ./build/logs/clover.xml ./build/coverage
- ./vendor/bin/coveralls -v --exclude-no-stmt

notifications:
webhooks: https://coveralls.io/webhook?repo_token=$COVERALLS_WEBHOOK

matrix:
allow_failures:
- php: 7.0 # PHP 7 requires PHPUnit 5, work needed to support the later
- php: hhvm # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
exclude:
- php: 7.0 # PHP 7 requires PHPUnit 5, work needed to support the later
- php: hhvm
env: DB=pgsql ORM=2.3 # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
- php: hhvm
env: DB=pgsql ORM=2.4 # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
- php: hhvm
env: DB=pgsql ORM=2.5 # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
- php: 5.3
env: DB=mysql ORM=2.5 # ORM >=2.5 requires PHP >=5.4
- php: 5.3
env: DB=pgsql ORM=2.5 # ORM >=2.5 requires PHP >=5.4
env: ORM=2.5 # ORM >=2.5 requires PHP >=5.4
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -14,7 +14,8 @@
"doctrine/orm": ">=2.3"
},
"require-dev": {
"phpunit/phpunit": ">=4.8",
"phpunit/phpunit": "<5.0",
"phpunit/phpcov": "*",
"ramsey/array_column": "~1.1",
"satooshi/php-coveralls": "dev-master"
},
Expand Down
3 changes: 2 additions & 1 deletion tests/travis/composer.orm2.3.json
Expand Up @@ -14,7 +14,8 @@
"doctrine/orm": "<2.4"
},
"require-dev": {
"phpunit/phpunit": ">=4.8",
"phpunit/phpunit": "<5.0",
"phpunit/phpcov": "*",
"ramsey/array_column": "~1.1",
"satooshi/php-coveralls": "dev-master"
},
Expand Down
3 changes: 2 additions & 1 deletion tests/travis/composer.orm2.4.json
Expand Up @@ -14,7 +14,8 @@
"doctrine/orm": "<2.5"
},
"require-dev": {
"phpunit/phpunit": ">=4.8",
"phpunit/phpunit": "<5.0",
"phpunit/phpcov": "*",
"ramsey/array_column": "~1.1",
"satooshi/php-coveralls": "dev-master"
},
Expand Down
3 changes: 2 additions & 1 deletion tests/travis/composer.orm2.5.json
Expand Up @@ -14,7 +14,8 @@
"doctrine/orm": "<2.6"
},
"require-dev": {
"phpunit/phpunit": ">=4.8",
"phpunit/phpunit": "<5.0",
"phpunit/phpcov": "*",
"ramsey/array_column": "~1.1",
"satooshi/php-coveralls": "dev-master"
},
Expand Down

0 comments on commit bc44d95

Please sign in to comment.