Skip to content

Commit

Permalink
report test coverage + upload to codeco + add badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Schouwenaars committed Apr 24, 2018
1 parent 5816196 commit b5559fd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
source=protowhat
omit=*tests*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ language: python
python:
- '3.5'
install:
- pip install .
- pip install -e .
- pip install -r requirements.txt
script: py.test
script: make test
deploy:
provider: pypi
user: machow
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ commands :

## test : run tests.
test :
python -m pytest
pytest --cov=protowhat
codecov

## clean : clean up junk files.
clean :
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# protowhat

[![Build Status](https://travis-ci.org/datacamp/protowhat.svg?branch=master)](https://travis-ci.org/datacamp/protowhat)
[![codecov](https://codecov.io/gh/datacamp/protowhat/branch/master/graph/badge.svg)](https://codecov.io/gh/datacamp/protowhat)
[![PyPI version](https://badge.fury.io/py/protowhat.svg)](https://badge.fury.io/py/protowhat)

## Installation
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
pytest
codecov
pytest-cov
bashlex

0 comments on commit b5559fd

Please sign in to comment.