Switch from Coveralls to Codecov

- Prevent AppVeyor from building a Docker image on PR
This commit is contained in:
Fred Park 2017-10-13 09:51:04 -07:00 коммит произвёл Fred Park
Родитель 68bb2f49d4
Коммит 523e1e2ee8
7 изменённых файлов: 17 добавлений и 7 удалений

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

@ -0,0 +1,4 @@
coverage:
round: down
precision: 5
range: "100...100"

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

@ -1,4 +1,5 @@
[run]
source = blobxfer
omit =
**/test/*

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

@ -30,13 +30,13 @@ install:
- export BLOBXFER_NOBUILD=$([[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]] || [[ "$TRAVIS_OS_NAME" == "osx" ]] || echo 1)
- travis_retry pip install --upgrade pip
- travis_retry pip install --upgrade setuptools wheel
- travis_retry pip install --upgrade coveralls tox-travis
- travis_retry pip install --upgrade codecov tox-travis
script:
- tox
after_success:
- coveralls --rcfile=.coveragerc --verbose
- codecov
- echo BLOBXFER_NOBUILD=$BLOBXFER_NOBUILD
before_deploy:

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

@ -1,8 +1,7 @@
[![Build Status](https://travis-ci.org/Azure/blobxfer.svg?branch=master)](https://travis-ci.org/Azure/blobxfer)
[![Build status](https://ci.appveyor.com/api/projects/status/qgth9p7jlessgp5i/branch/master?svg=true)](https://ci.appveyor.com/project/alfpark/blobxfer)
[![Coverage Status](https://coveralls.io/repos/github/Azure/blobxfer/badge.svg?branch=master)](https://coveralls.io/github/Azure/blobxfer?branch=master)
[![codecov](https://codecov.io/gh/Azure/blobxfer/branch/master/graph/badge.svg)](https://codecov.io/gh/Azure/blobxfer)
[![PyPI](https://img.shields.io/pypi/v/blobxfer.svg)](https://pypi.python.org/pypi/blobxfer)
[![PyPI](https://img.shields.io/pypi/pyversions/blobxfer.svg)](https://pypi.python.org/pypi/blobxfer)
[![Docker Pulls](https://img.shields.io/docker/pulls/alfpark/blobxfer.svg)](https://hub.docker.com/r/alfpark/blobxfer)
[![Image Layers](https://images.microbadger.com/badges/image/alfpark/blobxfer:latest.svg)](http://microbadger.com/images/alfpark/blobxfer)

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

@ -58,6 +58,10 @@ after_test:
bin\\%BLOBXFER_ARTIFACT% upload --remote-path releases/%APPVEYOR_REPO_TAG_NAME% --local-path bin\\%BLOBXFER_ARTIFACT% --strip-components 1 --file-md5 --overwrite
)
- ps: >-
if (!($Env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)) {
Write-Host "Build is from a PR, not creating a Docker image"
return
}
if ($Env:PYTHON_VERSION -eq "3.6") {
$DOCKER_IMAGE_TAG_SUFFIX = $null
if ($Env:APPVEYOR_REPO_TAG -eq "true") {
@ -70,8 +74,8 @@ after_test:
$DOCKER_IMAGE_TAG_SUFFIX = 'develop-windows'
}
if ($DOCKER_IMAGE_TAG_SUFFIX -eq $null) {
Write-Host "Image tag suffix is null, not creating a Docker image"
return
Write-Host "Image tag suffix is null, not creating a Docker image"
return
}
$DOCKER_IMAGE_TAG = $Env:DOCKER_IMAGE_TAG_PREFIX + $DOCKER_IMAGE_TAG_SUFFIX
Write-Host "Creating image with tag: $DOCKER_IMAGE_TAG"

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

@ -1,4 +1,5 @@
coverage>=4.4.1
flake8>=3.4.1
mock>=2.0.0; python_version < '3.3'
pytest>=3.2.0
pytest>=3.2.3
pytest-cov>=2.5.1

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

@ -3,6 +3,7 @@ envlist = py27, py34, py35, py36
[testenv]
deps = -rtest_requirements.txt
passenv = CI TRAVIS TRAVIS_*
commands =
flake8 {envsitepackagesdir}/blobxfer_cli/
flake8 {envsitepackagesdir}/blobxfer/