diff options
author | Guido A.J. Stevens <guido.stevens@cosent.nl> | 2018-01-25 09:18:03 +0000 |
---|---|---|
committer | Guido A.J. Stevens <guido.stevens@cosent.nl> | 2018-01-25 09:18:03 +0000 |
commit | 9cd831783921c6b2e3efe286fd6689cf788b0393 (patch) | |
tree | 539f6f694c8915a142f6c01afbde1ada00313382 /tox.ini | |
parent | 828ff0289642a95ec00fe4f9a55da51c455277c8 (diff) | |
download | python-magic-9cd831783921c6b2e3efe286fd6689cf788b0393.tar.gz |
Provide tox runner
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -0,0 +1,36 @@ +[tox] +envlist = + coverage-clean, + py27, + py36, + coverage-report + + +[testenv] +commands = + coverage run --source=magic setup.py test + +setenv = + COVERAGE_FILE=.coverage.{envname} +deps = + .[test] + zope.testrunner + coverage + +[testenv:coverage-clean] +deps = coverage +setenv = + COVERAGE_FILE=.coverage +skip_install = true +commands = coverage erase + +[testenv:coverage-report] +deps = coverage +setenv = + COVERAGE_FILE=.coverage +skip_install = true +commands = + coverage combine + coverage report + coverage html + coverage |