Skip to content

Commit

Permalink
Merge pull request #21 from j0k3r/coveralls
Browse files Browse the repository at this point in the history
Add Coveralls
  • Loading branch information
j0k3r authored Feb 27, 2017
2 parents 1a9433e + 99fc588 commit d92ef0a
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ matrix:
- php: 7.0
- php: 7.1
- php: nightly
- php: 7.0
env: COVERAGE=run
allow_failures:
- php: nightly

Expand All @@ -34,7 +36,14 @@ before_script:
- ./bin/console doctrine:schema:create --env=test
- ./bin/console doctrine:fixtures:load --env=test -n
- ./bin/rabbit vhost:mapping:create -p guest app/config/rabbit_vhost.yml
- if [ $COVERAGE = run ]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi;

script:
- ./bin/simple-phpunit -v
- ./bin/simple-phpunit -v $PHPUNIT_FLAGS
- if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;

after_success:
- |
if [ $COVERAGE = run ]; then
php bin/coveralls -v
fi
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Banditore

[![Build Status](https://travis-ci.org/j0k3r/banditore.svg?branch=master)](https://travis-ci.org/j0k3r/banditore)
[![Coverage Status](https://coveralls.io/repos/github/j0k3r/banditore/badge.svg?branch=master)](https://coveralls.io/github/j0k3r/banditore?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/j0k3r/banditore/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/j0k3r/banditore/?branch=master)

![Banditore](http://i.imgur.com/kAvg4w9.png)
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"friendsofphp/php-cs-fixer": "~2.0",
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.0",
"doctrine/doctrine-fixtures-bundle": "^2.3"
"doctrine/doctrine-fixtures-bundle": "^2.3",
"satooshi/php-coveralls": "dev-master"
},
"scripts": {
"symfony-scripts": [
Expand Down
69 changes: 67 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d92ef0a

Please sign in to comment.