소스 검색

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
 
 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