Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jul 24, 2014
1 parent 751b4af commit 5b48eb7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: "test/phpunit.output.clover.xml"
json_path: "coveralls-upload.json"
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ php:
- 5.5
- 5.4
install: "./bin/install"
script: "./test/run"
script: "./test/run"
after_script:
- php vendor/bin/coveralls
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"leafo/scssphp": "0.0.*"
},
"require-dev": {
"phpunit/phpunit": "4.1.*"
"phpunit/phpunit": "4.1.*",
"satooshi/php-coveralls": "dev-master"
},

"prefer-stable": true,
Expand Down
3 changes: 3 additions & 0 deletions test/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
<log type="json" target="phpunit.output.json" />
<log type="tap" target="phpunit.output.tap" />
<log type="xml" target="phpunit.output.xml" />
<log type="coverage-clover" target="phpunit.output.clover.xml" />

<log type="coverage-html" target="Report"
charset="UTF-8" highlight="false"
lowUpperBound="35" highLowerBound="70" />

<log type="coverage-text"
target="php://stdout" showUncoveredFiles="true" />
</logging>
Expand Down

0 comments on commit 5b48eb7

Please sign in to comment.