Permalink
Browse files

Configure Scrutinizer CI

  • Loading branch information...
1 parent 5c47598 commit 7b8740a2b7250ae76c29042d2709d6287b5e3421 @colinodell colinodell committed May 29, 2015
Showing with 29 additions and 1 deletion.
  1. +24 −0 .scrutinizer.yml
  2. +3 −0 .travis.yml
  3. +2 −1 composer.json
View
@@ -0,0 +1,24 @@
+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: 1200
+ runs: 3
+
View
@@ -19,3 +19,6 @@ install: travis_retry composer install --no-interaction --prefer-source
script:
- if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; fi
+
+after_script:
+ - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
View
@@ -30,6 +30,7 @@
"ext-xml": "*"
},
"require-dev": {
- "phpunit/phpunit": "4.*"
+ "phpunit/phpunit": "4.*",
+ "scrutinizer/ocular": "~1.1"
}
}

0 comments on commit 7b8740a

Please sign in to comment.