Add scrutinizer to track php test coverage
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Родитель
baea8bc01f
Коммит
5a8c1bff16
|
@ -0,0 +1,14 @@
|
||||||
|
filter:
|
||||||
|
excluded_paths:
|
||||||
|
- 'js/tests/*'
|
||||||
|
- 'vendor/*'
|
||||||
|
- 'l10n/*'
|
||||||
|
|
||||||
|
imports:
|
||||||
|
- javascript
|
||||||
|
- php
|
||||||
|
|
||||||
|
tools:
|
||||||
|
external_code_coverage:
|
||||||
|
timeout: 7200 # Timeout in seconds. 120 minutes
|
||||||
|
runs: 6
|
|
@ -20,6 +20,7 @@ services:
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- CORE_BRANCH=master
|
- CORE_BRANCH=master
|
||||||
|
- PHP_COVERAGE=TRUE
|
||||||
matrix:
|
matrix:
|
||||||
- DB=sqlite
|
- DB=sqlite
|
||||||
|
|
||||||
|
@ -72,6 +73,10 @@ script:
|
||||||
- cd tests
|
- cd tests
|
||||||
- phpunit --configuration phpunit.xml
|
- 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:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 7
|
- php: 7
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# U2F second factor provider for Nextcloud
|
# U2F second factor provider for Nextcloud
|
||||||
|
|
||||||
![Downloads](https://img.shields.io/github/downloads/nextcloud/twofactor_u2f/total.svg)
|
![Downloads](https://img.shields.io/github/downloads/nextcloud/twofactor_u2f/total.svg)
|
||||||
|
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nextcloud/twofactor_u2f/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nextcloud/twofactor_u2f/?branch=master)
|
||||||
[![Build Status](https://api.travis-ci.org/nextcloud/twofactor_u2f.svg?branch=master)](https://travis-ci.org/nextcloud/twofactor_u2f)
|
[![Build Status](https://api.travis-ci.org/nextcloud/twofactor_u2f.svg?branch=master)](https://travis-ci.org/nextcloud/twofactor_u2f)
|
||||||
|
|
||||||
![](screenshots/challenge.png)
|
![](screenshots/challenge.png)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче