diff --git a/.coveralls.yml b/.coveralls.yml
new file mode 100644
index 0000000..eb8e63b
--- /dev/null
+++ b/.coveralls.yml
@@ -0,0 +1 @@
+src_dir: .
diff --git a/.gitignore b/.gitignore
index bc959c5..12b0679 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+/build
/composer.lock
/phpunit.xml
/vendor
diff --git a/.travis.yml b/.travis.yml
index 21a11b8..fc1721e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,8 +6,19 @@ php:
- 5.6
- hhvm
+env:
+ global:
+ secure: tX0ZwCBxlIaKfaiIvZrNHL7jjKG3lW6J4sr38rJbb+gNmVMdxLwZKbaiXSEodSxDA94GCxcfTvhQGgfNeDvO40PyyvsVaU41u7DXmjwtUSzKSuVDg3tuYuQUDkVgomHHC55m17kdxX4fvBnnMopmAz+ewvJDEXbg10OEcsNXA+U=
+
before_script:
-- composer install
+- composer require satooshi/php-coveralls:~0.6 --dev
+
+script:
+- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
+
+after_script:
+- php vendor/bin/coveralls -v
+- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then sh generate-api.sh; fi
notifications:
email: false
diff --git a/README.md b/README.md
index 13eb2c3..f11598f 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,16 @@
-Embedly Service Provider [![Build Status](https://travis-ci.org/EmanueleMinotto/EmbedlyServiceProvider.svg)](https://travis-ci.org/EmanueleMinotto/EmbedlyServiceProvider)
-====================
+Embedly Service Provider
+========================
+
+[![Build Status](https://img.shields.io/travis/EmanueleMinotto/EmbedlyServiceProvider.svg?style=flat)](https://travis-ci.org/EmanueleMinotto/EmbedlyServiceProvider)
+[![SensioLabs Insight](https://img.shields.io/sensiolabs/i/95a26db2-bd04-4c3c-b3e5-37cab79fa6b7.svg?style=flat)](https://insight.sensiolabs.com/projects/95a26db2-bd04-4c3c-b3e5-37cab79fa6b7)
+[![Coverage Status](https://img.shields.io/coveralls/EmanueleMinotto/EmbedlyServiceProvider.svg?style=flat)](https://coveralls.io/r/EmanueleMinotto/EmbedlyServiceProvider)
+[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/EmanueleMinotto/EmbedlyServiceProvider.svg?style=flat)](https://scrutinizer-ci.com/g/EmanueleMinotto/EmbedlyServiceProvider/)
+[![Total Downloads](https://img.shields.io/packagist/dt/emanueleminotto/embedly-service-provider.svg?style=flat)](https://packagist.org/packages/emanueleminotto/embedly-service-provider)
An [embed.ly](http://embed.ly) service provider for [Silex](http://silex.sensiolabs.org/).
+API: [emanueleminotto.github.io/EmbedlyServiceProvider](http://emanueleminotto.github.io/EmbedlyServiceProvider/)
+
## Install
Install Silex using [Composer](http://getcomposer.org/).
diff --git a/generate-api.sh b/generate-api.sh
new file mode 100644
index 0000000..ed6bbc9
--- /dev/null
+++ b/generate-api.sh
@@ -0,0 +1,21 @@
+# Get ApiGen.phar
+wget http://www.apigen.org/apigen.phar
+
+# Generate Api
+php apigen.phar generate -s . --exclude=vendor --exclude=Tests -d ../gh-pages --todo --tree --no-source-code
+cd ../gh-pages
+
+# Set identity
+git config --global user.email "travis@travis-ci.org"
+git config --global user.name "Travis"
+
+# Add branch
+git init
+git remote add origin https://${GH_TOKEN}@github.com/EmanueleMinotto/EmbedlyServiceProvider.git > /dev/null
+git checkout -B gh-pages
+git rm -rf .
+
+# Push generated files
+git add --all .
+git commit -m "API updated"
+git push origin gh-pages -fq > /dev/null
\ No newline at end of file
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 20654de..45c901d 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -9,4 +9,13 @@
+
+
+ ./
+
+ ./Tests
+ ./vendor
+
+
+