Skip to content

Commit d46baa5

Browse files
authored
[WIP] Added codecov (#16)
* added code coverage
1 parent a5a54ef commit d46baa5

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
sudo: false
2+
13
language: python
4+
25
python:
36
- "2.7"
47
- "3.5"
58
install:
69
- pip install -r requirements.txt
10+
711
script:
8-
- python -m unittest discover pydatastructs
9-
- pytest --doctest-modules
12+
- python -m pytest --doctest-modules --cov=./ --cov-report=xml

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ PyDataStructs
33

44
[![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)
55

6+
.. image:: https://codecov.io/gh/codecov/example-python/branch/master/graph/badge.svg
7+
:target: https://codecov.io/gh/codecov/example-python
8+
69
Who are we?
710
-----------
811

codecov.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 0%
6+
threshold: 100%
7+
8+
patch: false
9+
10+
precision: 3
11+
12+
comment:
13+
layout: "diff, files"
14+
behavior: default
15+
require_changes: false

coveragerc_travis

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[run]
2+
parallel = True
3+
source = pydatastructs
4+
omit =
5+
*/tests/*

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
codecov
2+
pytest-cov

0 commit comments

Comments
 (0)