diff --git a/.travis.yml b/.travis.yml index 2401b8ce3..365448903 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index bdf54247c..e35a7bea9 100644 --- a/README.md +++ b/README.md @@ -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? ----------- diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..758379874 --- /dev/null +++ b/codecov.yml @@ -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 diff --git a/coveragerc_travis b/coveragerc_travis new file mode 100644 index 000000000..cdbc4d842 --- /dev/null +++ b/coveragerc_travis @@ -0,0 +1,5 @@ +[run] +parallel = True +source = pydatastructs +omit = + */tests/* diff --git a/requirements.txt b/requirements.txt index e69de29bb..0ea18bb95 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1,2 @@ +codecov +pytest-cov