Skip to content

Commit

Permalink
Merge pull request #21 from stefandoorn/coveralls
Browse files Browse the repository at this point in the history
Add support for Coveralls
  • Loading branch information
stefandoorn authored Oct 19, 2017
2 parents 5949dd8 + 965c337 commit b754a95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b754a95

Please sign in to comment.