Add scrutinizer to track php test coverage

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2017-03-07 14:17:07 +01:00
Родитель baea8bc01f
Коммит 5a8c1bff16
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: CC42AC2A7F0E56D8
3 изменённых файлов: 20 добавлений и 0 удалений

14
.scrutinizer.yml Normal file
Просмотреть файл

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

Просмотреть файл

@ -1,6 +1,7 @@
# U2F second factor provider for Nextcloud
![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)
![](screenshots/challenge.png)