Skip to content

Commit

Permalink
Add scrutinizer code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Tondereau committed Jun 23, 2016
1 parent 4b01e77 commit a81389a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
filter:
excluded_paths: [tests/*]

checks:
php:
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

tools:
external_code_coverage:
timeout: 600
runs: 3
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ before_script:

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"require-dev": {
"phpunit/phpunit": "^4.8|^5.0",
"mockery/mockery": "0.9.*",
"graham-campbell/testbench": "^3.2"
"graham-campbell/testbench": "^3.2",
"scrutinizer/ocular": "^1.3"
},
"suggest": {
"laravel/framework": "To test the Laravel bindings",
Expand Down

0 comments on commit a81389a

Please sign in to comment.