Skip to content

Commit

Permalink
Update travis config and add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
miglen committed Aug 23, 2017
1 parent cf87b05 commit ad63ae6
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ ENV/

# mypy
.mypy_cache/

.DS_Store
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ deploy:
notifications:
email: false
install:
- pip install pep8 .
- pip install -r test/requirements.txt
- pip install .
script:
- pep8
- pytest
- pytest --cov=./egn/
after_success:
- codecov
16 changes: 12 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ numbers in Bulgaria EGN (ЕГН).

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

|Build Status|

.. |Build Status| image:: https://travis-ci.org/miglen/egn.svg?branch=master
:target: https://travis-ci.org/miglen/egn
.. image:: https://badge.fury.io/py/egn.svg
:target: pypi.python.org/pypi/egn
:alt: PyPI package
.. image:: https://img.shields.io/travis/miglen/egn.svg
:target: https://travis-ci.org/miglen/egn
.. image:: https://readthedocs.org/projects/egn/badge/?version=latest
:target: http://egn.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/codecov/c/github/miglen/egn.svg
:target: http://codecov.io/gh/miglen/egn
.. image:: https://img.shields.io/codeclimate/github/miglen/egn.svg
:target: https://codeclimate.com/github/miglen/egn

to-do
=====
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='egn',
version='0.1.1',
version='0.1.2',
packages=find_packages(exclude=['tests']),
include_package_data=True,
license='GPL-3.0', # example license
Expand Down
5 changes: 5 additions & 0 deletions test/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
codecov
coverage
pep8
pytest
pytest-cov

0 comments on commit ad63ae6

Please sign in to comment.