Use Codecov exclusively for coverage

+ some doc fixes

Signed-off-by: Olivier Paroz (oparoz) <github@oparoz.com>
This commit is contained in:
Olivier Paroz (oparoz) 2017-03-12 11:57:47 +01:00
parent e28a152119
commit 63f392131a
No known key found for this signature in database
GPG Key ID: 165E66587C7FE8B1
5 changed files with 9 additions and 13 deletions

View File

@ -24,8 +24,6 @@ tools:
php_sim: true
php_pdepend: true
php_analyzer: true
external_code_coverage:
timeout: 3600 # Timeout in seconds. 60 minutes
checks:
php:

View File

@ -96,7 +96,7 @@ before_script:
- cd ${TRAVIS_BUILD_DIR}/../${SERVER_FOLDER}/apps/$APP_NAME
- composer self-update
- composer install -o --prefer-dist --no-interaction
- composer show -i
- composer show
script:
# Test lint
@ -114,10 +114,8 @@ script:
# - sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then phpenv config-rm xdebug.ini; phpdbg -qrr vendor/bin/codecept run unit,integration,api --coverage --coverage-xml --coverage-html; fi;"
after_success:
# Send coverage report to Scrutinizer
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml; fi"
- bash <(curl -s https://codecov.io/bash) -f tests/_output/coverage.xml
# Send coverage report to Codecov
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then bash <(curl -s https://codecov.io/bash) -f tests/_output/coverage.xml; fi"
# Generate API documentation
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] && [ '$DB' = 'mysql' ]; then php vendor/bin/phpdoc run; fi"

View File

@ -1,7 +1,7 @@
# Gallery
[![Build Status](https://travis-ci.org/nextcloud/gallery.svg?branch=master)](https://travis-ci.org/nextcloud/gallery)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nextcloud/gallery/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nextcloud/gallery/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/nextcloud/gallery/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/nextcloud/gallery/?branch=master)
[![Code Coverage](https://codecov.io/gh/nextcloud/gallery/branch/master/graph/badge.svg)](https://codecov.io/gh/nextcloud/gallery)
[![PHP 7 ready](http://php7ready.timesplinter.ch/nextcloud/gallery/badge.svg)](https://travis-ci.org/nextcloud/gallery)
Media gallery for Nextcloud which includes previews for all media types supported by your installation.

View File

@ -14,7 +14,7 @@ git init
# Inside this git repo we'll pretend to be a new user
git config user.name "Travis CI"
git config user.email "travis-gallery-reporter@interfasys.ch"
git config user.email "travis-gallery-reporter@nextcloud.com"
# The first and only commit to this new Git repo contains all the
# files present with the commit message "Deploy to GitHub Pages".
@ -23,7 +23,7 @@ git add .
# Initialising wiki submodule
git submodule add https://github.com/nextcloud/gallery.wiki.git wiki
git commit -m "Gallery documentation"
git commit -m "Nextcloud Gallery documentation"
# Force push from the current repo's master branch to the remote
# repo's gh-pages branch. (All previous history on the gh-pages branch

View File

@ -1,4 +1,4 @@
## Developer documentation for ownCloud Gallery</title>
## Developer documentation for Nextcloud Gallery</title>
* [API documentation and reports](https://owncloud.github.io/gallery/)
* [Developer documentation](https://github.com/owncloud/gallery/wiki)
* [API documentation and reports](https://nextcloud.github.io/gallery/)
* [Developer documentation](https://github.com/nextcloud/gallery/wiki)