Skip to content

Commit

Permalink
Add coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
mbachry committed Oct 20, 2016
1 parent f833a29 commit 5b6523a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python:
env:
- TOX_ENV=py27
- TOX_ENV=py35
- TOX_ENV=coverage

install:
- pip install tox
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ collectd-systemd
:alt: Build status
:target: https://travis-ci.org/mbachry/collectd-systemd

.. image:: https://coveralls.io/repos/github/mbachry/collectd-systemd/badge.svg?branch=master
:alt: Coverage
:target: https://coveralls.io/github/mbachry/collectd-systemd?branch=master

A `collectd`_ plugin which checks if given `systemd`_ services are in
"running" state and sends `graphite`_ metrics with ``1.0`` or ``0.0``
value.
Expand Down
13 changes: 12 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
[tox]
envlist = py27,py35

[testenv]
deps = -rrequirements_test.txt
commands=pytest
commands = pytest

[testenv:coverage]
deps =
-rrequirements_test.txt
pytest-cover
coveralls
commands =
pytest --cov=collectd_systemd
coveralls
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH

0 comments on commit 5b6523a

Please sign in to comment.