Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Added codecov #16

Merged
merged 15 commits into from
Jun 26, 2019
Merged
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
sudo: false

language: python

python:
- "2.7"
- "3.5"
install:
- pip install -r requirements.txt

script:
- python -m unittest discover pydatastructs
- pytest --doctest-modules
- python -m pytest --doctest-modules --cov=./ --cov-report=xml
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ PyDataStructs

[![Build Status](https://travis-ci.org/codezonediitj/pydatastructs.png?branch=master)](https://travis-ci.org/codezonediitj/pydatastructs) [![Join the chat at https://gitter.im/codezonediitj/pydatastructs](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/codezoned2017/Lobby) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/codezonediitj/pydatastructs/pulls)

.. image:: https://codecov.io/gh/codecov/example-python/branch/master/graph/badge.svg
:target: https://codecov.io/gh/codecov/example-python

Who are we?
-----------

Expand Down
15 changes: 15 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
coverage:
status:
project:
default:
target: 0%
threshold: 100%

patch: false

precision: 3

comment:
layout: "diff, files"
behavior: default
require_changes: false
5 changes: 5 additions & 0 deletions coveragerc_travis
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[run]
parallel = True
source = pydatastructs
omit =
*/tests/*
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
codecov
pytest-cov