diff --git a/.gitignore b/.gitignore index d3979dc..a4e8636 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ pip-delete-this-directory.txt pyvenv.cfg bin/ +.coverage diff --git a/.travis.yml b/.travis.yml index cb920e3..365ae2c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,8 +13,11 @@ python: install: - pip install requests - pip install nose + - pip install coverage + - pip install coveralls # command to run tests, e.g. python setup.py test -script: nosetests --nocapture +script: coverage run --source=hackertray $(which nosetests) +after_success: coveralls notifications: email: on_success: never diff --git a/README.md b/README.md index ba2a875..014763f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![HackerTray on PyPi](https://pypip.in/v/hackertray/badge.png)](https://pypi.python.org/pypi/hackertray/) [![HackerTray on PyPi](https://pypip.in/d/hackertray/badge.png)](https://pypi.python.org/pypi/hackertray/) -[![Build Status](https://travis-ci.org/captn3m0/hackertray.png)](https://travis-ci.org/captn3m0/hackertray) +[![Build Status](https://travis-ci.org/captn3m0/hackertray.png)](https://travis-ci.org/captn3m0/hackertray) [![Coverage Status](https://coveralls.io/repos/github/captn3m0/hackertray/badge.svg?branch=master)](https://coveralls.io/github/captn3m0/hackertray?branch=master) HackerTray is a simple [Hacker News](https://news.ycombinator.com/) Linux application that lets you view top HN stories in your System Tray. It uses appindicator where available,