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 e0f999d commit 147a889
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 24 deletions.
29 changes: 9 additions & 20 deletions .scrutinizer.yml
@@ -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
11 changes: 9 additions & 2 deletions .travis.yml
Expand Up @@ -3,11 +3,18 @@ php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm-nightly
before_script:
- "mysql -e 'DROP DATABASE IF EXISTS test;'"
- "mysql -e 'create database test;'"
- "psql -c 'DROP DATABASE IF EXISTS test;' -U postgres"
- "psql -c 'create database test;' -U postgres"
- 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
Expand Up @@ -15,8 +15,8 @@ Alternatively, [download a release](https://github.com/auraphp/Aura.SqlSchema/re

### Quality

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

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

0 comments on commit 147a889

Please sign in to comment.