diff options
author | Daniel Bader <mail@dbader.org> | 2013-05-31 14:36:46 +0200 |
---|---|---|
committer | Daniel Bader <mail@dbader.org> | 2013-05-31 14:36:46 +0200 |
commit | cbac8f28a4d1fc17a51015b4e4471036d09385c1 (patch) | |
tree | 2d8cdf14f97cd170ab3b4b0a1f304dfe1f5565f6 | |
parent | 43de02995f57505c0b22a93c2f5770cb84c06a06 (diff) | |
download | times-cbac8f28a4d1fc17a51015b4e4471036d09385c1.tar.gz |
Generate coverage data and prepare integration with Coveralls.io
I've updated the Travis build file and the Tox config to run nosetests
with the --with-coverage parameter. The resulting coverage information
can then be automatically submitted to Coveralls.io after each Travis
build (via the coveralls module).
I've also embedded a coverage badge to README.md so that we get a nice
coverage status once the repo is connected to Coveralls.
-rw-r--r-- | .travis.yml | 5 | ||||
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | tox.ini | 9 |
3 files changed, 13 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index dabab7e..c73c079 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,9 @@ python: install: - if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install -r py26-requirements.txt; fi - pip install -r requirements.txt + - pip install coveralls --use-mirrors #- pip install nose # installed by Travis by default already script: - - nosetests + - nosetests --with-coverage --cover-erase --cover-package=times +after_success: + - coveralls @@ -1,8 +1,9 @@ Times ===== -Build status: -[![Build Status](https://secure.travis-ci.org/nvie/times.png)](http://travis-ci.org/nvie/times) +Build status: +[![Build Status](https://secure.travis-ci.org/nvie/times.png)](http://travis-ci.org/nvie/times) [![Coverage Status](https://coveralls.io/repos/nvie/times/badge.png?branch=master)](https://coveralls.io/r/nvie/times?branch=master) + Times is a small, minimalistic, Python library for dealing with time conversions to and from timezones, for once and for all. @@ -2,10 +2,13 @@ envlist = py26,py27,py32,py33,pypy [testenv] -deps=nose -commands=nosetests +deps = + nose + coverage +commands = nosetests --with-coverage --cover-erase --cover-package=times [testenv:py26] -deps= +deps = nose + coverage unittest2 |