Skip to content

Commit

Permalink
update coverage config for travis and scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Aug 28, 2014
1 parent b6cf73d commit de0478e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 25 deletions.
29 changes: 9 additions & 20 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
filter:
paths: ["src/*"]
tools:
php_code_coverage:
test_command: "phpunit -c tests/"
filter:
paths: ["src/*"]
php_sim:
enabled: true
filter:
paths: ["src/*"]
php_mess_detector:
enabled: true
filter:
paths: ["src/*"]
php_pdepend:
enabled: true
filter:
paths: ["src/*"]
php_analyzer:
enabled: true
filter:
paths: ["src/*"]
external_code_coverage: true
php_code_coverage: true
php_sim: true
php_mess_detector: true
php_pdepend: true
php_analyzer: true
php_cpd: true
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_script:
- cd tests
script: phpunit
script:
- phpunit -c tests/ --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
notifications:
- email: true
- irc: "irc.freenode.org#auraphp"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Alternatively, [download a release](https://github.com/auraphp/Aura.Sql/releases

### Quality

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/badges/quality-score.png?branch=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/)
[![Code Coverage](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/badges/coverage.png?branch=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/badges/quality-score.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/)
[![Code Coverage](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/badges/coverage.png?b=develop-2)](https://scrutinizer-ci.com/g/auraphp/Aura.Sql/)
[![Build Status](https://travis-ci.org/auraphp/Aura.Sql.png?branch=develop-2)](https://travis-ci.org/auraphp/Aura.Sql)

To run the [PHPUnit][] tests at the command line, go to the _tests_ directory and issue `phpunit`.
Expand Down

0 comments on commit de0478e

Please sign in to comment.