diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2017-03-14 15:24:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 15:24:35 +0300 |
commit | 3e10505841dcbe2be47a564dfbdd55a5c40dcf56 (patch) | |
tree | 37247bb3edc1e46b97212c36e8bc041f7ccdd772 /.travis.yml | |
parent | 5459cfb798dbccdc923223c8ab2dba839e96b4de (diff) | |
parent | f876e480f7210d22395b4c9e0a7755e69c43256f (diff) |
Merge pull request #38 from nextcloud/php-coverage
Add scrutinizer to track php test coverage
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 8dafa24..310b73d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ services: env: global: - CORE_BRANCH=master + - PHP_COVERAGE=TRUE matrix: - DB=sqlite @@ -75,6 +76,10 @@ script: - cd tests - phpunit --configuration phpunit.xml + # Publish PHP coverage to scrutinizer + - if [[ "$PHP_COVERAGE" = "TRUE" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi + - if [[ "$PHP_COVERAGE" = "TRUE" ]]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi + matrix: include: - php: 7 |