Skip to content

Commit fb52d77

Browse files
committed
Update travis config and add code coverage
1 parent cf87b05 commit fb52d77

File tree

5 files changed

+28
-6
lines changed

5 files changed

+28
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,5 @@ ENV/
9999

100100
# mypy
101101
.mypy_cache/
102+
103+
.DS_Store

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ deploy:
1313
notifications:
1414
email: false
1515
install:
16-
- pip install pep8 .
16+
- pip install -r test/requirements.txt
17+
- pip install .
1718
script:
1819
- pep8
19-
- pytest
20+
- pytest --cov=./egn/
21+
after_success:
22+
- codecov

README.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ numbers in Bulgaria EGN (ЕГН).
66

77
Български: Скрипт за проверка и генериране на ЕГН / Програма за проверка и генериране на единни граждански номера.
88

9-
|Build Status|
10-
11-
.. |Build Status| image:: https://travis-ci.org/miglen/egn.svg?branch=master
12-
:target: https://travis-ci.org/miglen/egn
9+
.. image:: https://badge.fury.io/py/egn.svg
10+
:target: pypi.python.org/pypi/egn
11+
:alt: PyPI package
12+
.. image:: https://img.shields.io/travis/miglen/egn.svg
13+
:target: https://travis-ci.org/miglen/egn
14+
.. image:: https://readthedocs.org/projects/egn/badge/?version=latest
15+
:target: http://egn.readthedocs.io/en/latest/?badge=latest
16+
:alt: Documentation Status
17+
.. image:: https://img.shields.io/codecov/c/github/miglen/egn.svg
18+
:target: http://codecov.io/gh/miglen/egn
19+
.. image:: https://img.shields.io/codeclimate/github/miglen/egn.svg
20+
:target: https://codeclimate.com/github/miglen/egn
1321

1422
to-do
1523
=====

test/requirements.txt

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

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[testenv]
2+
passenv = TOXENV CI TRAVIS TRAVIS_*
3+
deps = codecov>=1.4.0
4+
commands = codecov -e TOXENV

0 commit comments

Comments
 (0)