diff --git a/.travis.yml b/.travis.yml
index 5f9f997..b316af7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,8 +7,13 @@ php:
- nightly
- hhvm
-install:
- - composer self-update
- - composer install --prefer-source
-script: phpunit
+before_script:
+ - composer self-update
+ - composer install --dev --prefer-source
+ - mkdir -p build/logs
+
+script: phpunit --coverage-clover build/logs/clover.xml
+
+after_script:
+ - php vendor/bin/coveralls -v
\ No newline at end of file
diff --git a/README.md b/README.md
index 42406a0..b583b0f 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,9 @@
[](https://packagist.org/packages/box/spout)
[](http://opensource.box.com/badges)
[](http://travis-ci.org/box/spout)
-[](https://packagist.org/packages/box/spout) [](https://packagist.org/packages/box/spout)
+[](https://coveralls.io/r/box/spout)
+[](https://packagist.org/packages/box/spout)
+[](https://packagist.org/packages/box/spout)
Spout is a PHP library to read and write CSV and XLSX files, in a fast and scalable way.
Contrary to other file readers or writers, it is capable of processing very large files while keeping the memory usage really low (less than 10MB).
diff --git a/composer.json b/composer.json
index 068ac60..b44d45f 100644
--- a/composer.json
+++ b/composer.json
@@ -18,7 +18,8 @@
"ext-simplexml": "*"
},
"require-dev": {
- "phpunit/phpunit": ">=3.7"
+ "phpunit/phpunit": "^4.7",
+ "satooshi/php-coveralls": "^0.6.1"
},
"autoload": {
"psr-4": {
diff --git a/phpunit.xml b/phpunit.xml
index 5de1e0f..df66dd2 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -13,15 +13,13 @@
tests/
-
-
-
-
-
src/
+
+ vendor/
+