瀏覽代碼

travis config for scrutinizer code coverage

If you are interested in using scrutinizer for it's code coverage reporting/badge you just need to update these parts of the travis config to have the coverage uploaded to scrutinizer.
You'll also need to enable coverage in scrutinizer by adding
```
tools:
    external_code_coverage: true
```
into your scrutinizer build settings file
Chris Johnson 11 年之前
父節點
當前提交
a0b05c867e
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      .travis.yml

+ 3 - 1
.travis.yml

@@ -26,7 +26,9 @@ before_script:
   - composer install --prefer-source --no-interaction
   - composer install --prefer-source --no-interaction
 
 
 script:
 script:
-  - phpunit -c phpunit.xml --coverage-text
+  - phpunit -c phpunit.xml --coverage-clover=coverage.clover
+  - wget https://scrutinizer-ci.com/ocular.phar
+  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
 
 
 notifications:
 notifications:
     email: false
     email: false