Skip to content

Commit

Permalink
Merge pull request #6042 from jnsebgosselin/setup_codecov_appveyor
Browse files Browse the repository at this point in the history
PR: Add test coverage reporting with AppVeyor to Codecov
  • Loading branch information
ccordoba12 authored Dec 26, 2017
2 parents ff85949 + f9e4748 commit 1d4834d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
codecov:
notify:
require_ci_to_pass: yes

codecov:
branch: master

coverage:
precision: 2
round: down
range: "70...100"

status:
project: yes
patch: no
changes: no

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment: false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Copyright © Spyder Project Contributors.
[![AppVeyor status](https://ci.appveyor.com/api/projects/status/tvjcqa4kf53br8s0/branch/master?svg=true)](https://ci.appveyor.com/project/spyder-ide/spyder/branch/master)
[![CircleCI](https://circleci.com/gh/spyder-ide/spyder.svg?style=svg)](https://circleci.com/gh/spyder-ide/spyder)
[![Coverage Status](https://coveralls.io/repos/github/spyder-ide/spyder/badge.svg?branch=master)](https://coveralls.io/github/spyder-ide/spyder?branch=master)
[![codecov](https://codecov.io/gh/spyder-ide/spyder/branch/master/graph/badge.svg)](https://codecov.io/gh/spyder-ide/spyder)

## Overview

Expand Down
5 changes: 4 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ environment:
rope pyflakes sphinx pygments pylint pycodestyle psutil nbconvert
qtawesome cloudpickle pickleshare pyzmq chardet mock pandas pytest
pytest-cov numpydoc scipy pillow qtconsole matplotlib jedi pywin32
PIP_DEPENDENCIES: "pytest-qt pytest-mock pytest-timeout flaky"
PIP_DEPENDENCIES: "pytest-qt pytest-mock pytest-timeout flaky codecov"

matrix:
- PYTHON_VERSION: "2.7"
Expand Down Expand Up @@ -46,3 +46,6 @@ build: false

test_script:
- "%CMD_IN_ENV% python runtests.py || %CMD_IN_ENV% python runtests.py || %CMD_IN_ENV% python runtests.py"

on_success:
- codecov

0 comments on commit 1d4834d

Please sign in to comment.