get coverage working
This commit is contained in:
parent
50d0719ce6
commit
14c24656fa
|
@ -8,3 +8,4 @@ premailer/gorunsettings.py
|
|||
.DS_Store
|
||||
.coverage
|
||||
.tox
|
||||
/htmlcov/
|
||||
|
|
|
@ -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
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue