Skip to content

Commit

Permalink
[WIP] Added codecov (#16)
Browse files Browse the repository at this point in the history
* added code coverage
  • Loading branch information
czgdp1807 authored Jun 26, 2019
1 parent a5a54ef commit d46baa5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
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

0 comments on commit d46baa5

Please sign in to comment.