Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_gateway.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-04-10 16:33:27 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-04-10 16:33:27 +0300
commit9507091b8d25e3fc202824888bed722d3a5717d0 (patch)
treeabc68015a08efaa855a4187ef30a7e64fef40981 /.travis.yml
parentcfdc91d1da208ffcaf753ea0c8cca5231cd4a6b8 (diff)
Produce coverage reports on Travis
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml16
1 files changed, 11 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index ddda52c..04e1a95 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,11 +4,11 @@ language: php
php:
- 7.0
- 7.1
- - 7.2
env:
global:
- CORE_BRANCH=master
+ - PHP_COVERAGE=FALSE
matrix:
- DB=sqlite
@@ -31,7 +31,7 @@ before_install:
- chmod u+x phpunit
# XDebug is only needed if we report coverage -> speeds up other builds
- - phpenv config-rm xdebug.ini
+ - if [[ "$PHP_COVERAGE" = "FALSE" ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
- composer install
@@ -56,10 +56,16 @@ script:
- php ../../occ app:check-code twofactor_sms
# Run PHP tests
- - cd tests
- - ../phpunit --configuration phpunit.xml
- - ../phpunit --configuration phpunit.integration.xml
+ - ./phpunit --configuration tests/phpunit.xml
+ - ./phpunit --configuration tests/phpunit.integration.xml
+
+ # Upload coverage report 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 tests/clover.xml; fi
matrix:
+ include:
+ - php: 7.2
+ env: "PHP_COVERAGE=TRUE"
fast_finish: true