Skip to content

Commit

Permalink
Use coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
mkraemer committed May 12, 2016
1 parent c1137e3 commit d8b582a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
vendor/
/vendor
/build
/composer.lock
/composer.phar
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -9,3 +9,10 @@ php:
before_script:
- composer self-update
- composer install --prefer-source

script:
- mkdir -p build/logs
- phpunit -c phpunit.xml.dist

after_script:
- travis_retry php vendor/bin/coveralls -v
1 change: 1 addition & 0 deletions README.md
@@ -1,6 +1,7 @@
# React-PCNTL

[![Build Status](https://secure.travis-ci.org/mkraemer/react-pcntl.png)](http://travis-ci.org/mkraemer/react-pcntl)
[![Coverage Status](https://coveralls.io/repos/github/mkraemer/react-pcntl/badge.svg?branch=test-coverage-coveralls)](https://coveralls.io/github/mkraemer/react-pcntl?branch=test-coverage-coveralls)

Basic PCNTL bindings for [React PHP](https://github.com/reactphp).

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Expand Up @@ -17,5 +17,8 @@
"ext-pcntl": "*",
"evenement/evenement": "2.0.*",
"react/event-loop": "0.4.*"
},
"require-dev": {
"satooshi/php-coveralls": "^1.0"
}
}
8 changes: 8 additions & 0 deletions phpunit.xml.dist
Expand Up @@ -13,9 +13,17 @@
syntaxCheck = "false"
bootstrap = "vendor/autoload.php" >

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<testsuites>
<testsuite>
<directory>test</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>

0 comments on commit d8b582a

Please sign in to comment.