diff --git a/.travis.yml b/.travis.yml index b44db5a6..c5571565 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,14 +17,20 @@ install: - composer update --prefer-dist before_script: + - mkdir -p build/logs - (cd tests/Application && bin/console doctrine:schema:create --env=test --no-interaction) - (cd tests/Application && bin/console doctrine:schema:create --env=test_relative --no-interaction) script: - composer validate --strict --no-check-all - vendor/bin/phpspec run - - vendor/bin/phpunit --coverage-clover coverage.clover --stderr --verbose + - vendor/bin/phpunit --coverage-clover build/logs/clover.xml --stderr --verbose after_script: - wget https://scrutinizer-ci.com/ocular.phar - - php ocular.phar code-coverage:upload --format=php-clover coverage.clover + - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml + +after_success: + - wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.0/coveralls.phar + - chmod +x coveralls.phar + - travis_retry php coveralls.phar -v diff --git a/README.md b/README.md index 593f5ba9..a375fd7d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [![Version](https://img.shields.io/packagist/v/stefandoorn/sitemap-plugin.svg)](https://packagist.org/packages/stefandoorn/sitemap-plugin) [![Build status on Linux](https://img.shields.io/travis/stefandoorn/sitemap-plugin/master.svg)](http://travis-ci.org/stefandoorn/sitemap-plugin) [![Scrutinizer Quality Score](https://img.shields.io/scrutinizer/g/stefandoorn/sitemap-plugin.svg)](https://scrutinizer-ci.com/g/stefandoorn/sitemap-plugin/) -[![Code Coverage](https://scrutinizer-ci.com/g/stefandoorn/sitemap-plugin/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/stefandoorn/sitemap-plugin/?branch=master) [![Coverage Status](https://coveralls.io/repos/github/stefandoorn/sitemap-plugin/badge.svg?branch=master)](https://coveralls.io/github/stefandoorn/sitemap-plugin?branch=master) ## Big thanks