get coverage working

This commit is contained in:
Peter Bengtsson 2015-11-02 10:05:53 -08:00
parent 50d0719ce6
commit 14c24656fa
3 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ premailer/gorunsettings.py
.DS_Store
.coverage
.tox
/htmlcov/

View File

@ -15,7 +15,7 @@ language: python
before_install:
# twine is necessary so that travis can deploy
- travis_retry pip install twine
- travis_retry pip install coverage tox coveralls
- travis_retry pip install tox coveralls
install:
- travis_retry python setup.py install

View File

@ -8,7 +8,7 @@ envlist = flake8, py26, py27, py32, py33, py34, pypy
[testenv]
passenv = *
commands = nosetests
commands = nosetests --with-coverage --cover-package=premailer
install_command =
pip install {opts} {packages}
@ -19,6 +19,7 @@ deps =
cssselect
cssutils
lxml
coverage
[testenv:flake8]
deps = flake8
@ -27,7 +28,7 @@ commands = flake8 premailer
[testenv:py26]
# Python 2.6 is missing both the ordereddict and argparse modules
# from the standard library.
commands = nosetests
commands = nosetests --with-coverage --cover-package=premailer
install_command =
pip install {opts} {packages}
@ -40,3 +41,4 @@ deps =
lxml
ordereddict
argparse
coverage