diff --git a/.gitignore b/.gitignore index cf09a10..06cfb78 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ premailer/gorunsettings.py .DS_Store .coverage .tox +/htmlcov/ diff --git a/.travis.yml b/.travis.yml index f84d580..4ab03d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tox.ini b/tox.ini index 9c7d6da..4b63e5a 100644 --- a/tox.ini +++ b/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