Skip to content

Commit

Permalink
Updated with support for Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha Gerrand committed Sep 30, 2013
1 parent d55dce8 commit 07ae14b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ script/*

# Test coverage
/phpunit.xml
/test/coverage
/build
/test/reports
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ php:
before_script:
- composer install --dev --optimize-autoloader
- cp -v phpunit.dist.xml phpunit.xml
- mkdir -p build/logs
after_script:
- php vendor/bin/coveralls -v
env:
global:
- secure: BI/lllRhvsCrTAV5VU0QRbnZ8gURoILBlHBn+UTMsRiz8pXk9f21xMgzKxqh8HhQr+Bt7JYWoYYcerRyReH9N9vTGMN4+OUbSTTGaiumwd6vQTdYDKgqTHfBqOY2SkrUuiRsRcT50AXur9O857+Jrn19REtrOR9nGR9hKaS/aFc=
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ To find out more, visit the official documentation website:
http://developer.bigcommerce.com/

[![Build Status](https://travis-ci.org/bigcommerce/bigcommerce-api-php.png?branch=master)](https://travis-ci.org/bigcommerce/bigcommerce-api-php)
[![Coverage Status](https://coveralls.io/repos/bigcommerce/bigcommerce-api-php/badge.png?branch=master)](https://coveralls.io/r/bigcommerce/bigcommerce-api-php?branch=master)

Requirements
------------
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"require-dev": {
"phpunit/phpunit": "3.7",
"satooshi/php-coveralls": "dev-master",
"codeless/jugglecode": "1.0"
},
"autoload": {
Expand All @@ -26,4 +27,4 @@
"archive": {
"exclude": ["bin", "bigcommerce.php"]
}
}
}
5 changes: 3 additions & 2 deletions phpunit.dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
strict="false"
verbose="false">
<logging>
<log type="coverage-clover" target="test/coverage/clover.xml"/>
<log type="coverage-text" target="test/coverage/coverage.txt" showUncoveredFiles="false"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-php" target="build/logs/coverage.cov"/>
<log type="coverage-text" target="build/logs/coverage.txt" showUncoveredFiles="false"/>
<log type="junit" target="test/reports/junit.xml" logIncompleteSkipped="false"/>
</logging>
<testsuites>
Expand Down

0 comments on commit 07ae14b

Please sign in to comment.