Permalink
Browse files

travis: Record coverage data to coveralls.io

  • Loading branch information...
1 parent 6f53b68 commit d2f4369a6a46b857732021f09ad82f00f7ebee70 @jodal jodal committed Oct 10, 2013
Showing with 26 additions and 4 deletions.
  1. +5 −0 .coveragerc
  2. +3 −0 .travis.yml
  3. +16 −3 README.rst
  4. +2 −1 tox.ini
View
@@ -0,0 +1,5 @@
+[report]
+omit =
+ */pyshared/*
+ */python?.?/*
+ */site-packages/nose/*
View
@@ -19,6 +19,9 @@ install:
script:
- "tox -e $TOX_ENV"
+after_success:
+ - "if [ $TOXENV == 'py27' ]; then pip install coveralls; coveralls; fi"
+
notifications:
irc:
channels:
View
@@ -2,6 +2,22 @@
pyspotify
*********
+.. image:: https://pypip.in/v/pyspotify/badge.png
+ :target: https://crate.io/packages/pyspotify/
+ :alt: Latest PyPI version
+
+.. image:: https://pypip.in/d/pyspotify/badge.png
+ :target: https://crate.io/packages/pyspotify/
+ :alt: Number of PyPI downloads
+
+.. image:: https://travis-ci.org/jodal/pyspotify.png?branch=pyspotify2
+ :target: https://travis-ci.org/jodal/pyspotify
+ :alt: Travis CI build status
+
+.. image:: https://coveralls.io/repos/jodal/pyspotify/badge.png?branch=pyspotify2
+ :target: https://coveralls.io/r/jodal/pyspotify?branch=pyspotify2
+ :alt: Test coverage
+
Python wrapper for libspotify, second edition
This is a new Python wrapper for `libspotify
@@ -46,9 +62,6 @@ Development setup
Development status
==================
-.. image:: https://travis-ci.org/jodal/pyspotify.png?branch=pyspotify2
- :target: https://travis-ci.org/jodal/pyspotify
-
- 2013-06-21: Search subsystem complete.
- 2013-06-10: Album subsystem complete.
View
@@ -4,9 +4,10 @@ envlist = py27, py32, py33, pypy, docs, flake8
[testenv]
deps =
cffi
+ coverage
mock
nose
-commands = nosetests --with-xunit --xunit-file=xunit-{envname}.xml
+commands = nosetests --with-xunit --xunit-file=xunit-{envname}.xml --with-coverage --cover-package=spotify
[testenv:docs]
changedir = docs

0 comments on commit d2f4369

Please sign in to comment.