Browse Source

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 years ago
parent
commit
a0b05c867e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .travis.yml

+ 3 - 1
.travis.yml

@@ -26,7 +26,9 @@ before_script:
   - composer install --prefer-source --no-interaction
 
 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:
     email: false