Skip to content

Commit b81d1c0

Browse files
committed
Add coverage.
1 parent fbc56b2 commit b81d1c0

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ python:
1010
- "pypy"
1111

1212
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
13-
install: pip install . pytest
13+
install: pip install . pytest coveralls pytest-cov
1414

1515
# command to run tests, e.g. python setup.py test
16-
script: py.test
16+
script: py.test --cov fuzzyfinder tests
1717

1818
notifications:
1919
webhooks:
@@ -22,3 +22,6 @@ notifications:
2222
on_success: change # options: [always|never|change] default: always
2323
on_failure: always # options: [always|never|change] default: always
2424
on_start: false # default: false
25+
26+
after_success:
27+
coveralls

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test-all:
4444
tox
4545

4646
coverage:
47-
coverage run --source fuzzyfinder setup.py test
47+
py.test --cov fuzzyfinder tests
4848
coverage report -m
4949
coverage html
5050
open htmlcov/index.html
@@ -58,6 +58,7 @@ docs:
5858
open docs/_build/html/index.html
5959

6060
release: clean
61+
python setup.py register
6162
python setup.py sdist upload
6263
python setup.py bdist_wheel upload
6364

fuzzyfinder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__author__ = 'Amjith Ramanujam'
44
__email__ = 'amjith.r@gmail.com'
5-
__version__ = '0.1.0'
5+
__version__ = '0.2.0'
66

77
__all__ = []
88

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
pytest
2+
pytest-cov
3+
coveralls
14
wheel==0.23.0

0 commit comments

Comments
 (0)