Skip to content

Commit

Permalink
Added coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenp committed Jun 24, 2015
1 parent 5c3a604 commit 72bc403
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src_dir: src
coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ php:
- 5.5
- 5.6
- hhvm
- nightly
- nightly

script:
- mkdir -p build/logs

after_script:
- php vendor/bin/coveralls
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
"require-dev": {
"phpunit/phpunit": "~4.7",
"orchestra/testbench": "~3.0",
"mockery/mockery": "0.9.*"
"mockery/mockery": "0.9.*",
"satooshi/php-coveralls": "dev-master@dev"
},
"autoload": {
"psr-4": {
"Optimus\\ApiConsumer\\": "src/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"license": "Apache",
"authors": [
{
Expand Down
5 changes: 3 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">

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

<testsuites>
<testsuite name="Optimus\ApiConsumer Test Suite">
<directory suffix="Test.php">./tests/</directory>
Expand Down

0 comments on commit 72bc403

Please sign in to comment.