Skip to content

Commit

Permalink
Add coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
pkolios committed Jul 8, 2017
1 parent 71c4a88 commit 90ac094
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -15,4 +15,8 @@ install:
- pip install -U -r requirements.txt

script:
- make test
- make typing
- coverage run --source=mackerel setup.py test

after_success:
- coveralls
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -4,7 +4,7 @@ lint:
flake8 --exit-zero mackerel

test: lint typing
py.test -v
py.test -v --cov=mackerel

typing:
MYPYPATH='' mypy mackerel \
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
@@ -1,4 +1,5 @@
click
coveralls
flake8
ipdb
Jinja2
Expand All @@ -7,5 +8,7 @@ mistune
mistune-contrib
mypy
pytest
pytest-runner
pytest-cov
twine
wheel
6 changes: 6 additions & 0 deletions setup.cfg
@@ -1,2 +1,8 @@
[bdist_wheel]
python-tag = py36

[aliases]
test=pytest

[tool:pytest]
addopts = -v --ignore=setup.py
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -37,6 +37,8 @@ def read(fname):
'mistune',
'mistune-contrib',
],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov'],
entry_points='''
[console_scripts]
mackerel=mackerel.cli:cli
Expand Down

0 comments on commit 90ac094

Please sign in to comment.