diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-03-07 16:17:07 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-03-07 16:17:07 +0300 |
commit | 5a8c1bff16df43a8df16d7d4bdeac3b02342d210 (patch) | |
tree | d6f1b9d927576cd733e2a4686e5249b72bf9c3aa /.travis.yml | |
parent | baea8bc01fd29d6aa456c99e7e3d0318727f6451 (diff) |
Add scrutinizer to track php test coverage
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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 97a96ec..5f764b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ services: env: global: - CORE_BRANCH=master + - PHP_COVERAGE=TRUE matrix: - DB=sqlite @@ -72,6 +73,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 |