From fcebefa4d4251b7056352470b9b0dd040eb3eb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com> Date: Sat, 18 Jul 2015 22:01:39 +0200 Subject: [PATCH] Send coverage to coveralls --- .travis.yml | 6 +++++- README.rst | 18 ++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1cada11..50309b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,10 @@ python: install: - python setup.py install + - pip install pytest-pep8 pytest-cov coveralls script: - - python setup.py test + - py.test --pep8 mwclient -v --cov mwclient tests + +after_success: + - coveralls diff --git a/README.rst b/README.rst index d7fed47..ef43503 100644 --- a/README.rst +++ b/README.rst @@ -1,14 +1,24 @@ -.. image:: http://img.shields.io/travis/mwclient/mwclient.svg?style=flat +.. image:: http://img.shields.io/travis/mwclient/mwclient.svg :target: https://travis-ci.org/mwclient/mwclient + :alt: Build status -.. image:: http://img.shields.io/pypi/v/mwclient.svg?style=flat +.. image:: http://img.shields.io/coveralls/mwclient/mwclient.svg + :target: https://coveralls.io/r/mwclient/mwclient + :alt: Test coverage + +.. image:: http://img.shields.io/pypi/v/mwclient.svg :target: https://pypi.python.org/pypi/mwclient + :alt: Latest version -.. image:: http://img.shields.io/pypi/dw/mwclient.svg?style=flat +.. image:: http://img.shields.io/pypi/dw/mwclient.svg :target: https://pypi.python.org/pypi/mwclient + :alt: Downloads + +.. image:: https://img.shields.io/github/license/mwclient/mwclient.svg + :target: http://opensource.org/licenses/MIT + :alt: MIT license - mwclient ======== -- GitLab