From 27a0e270e36eaf5352f7df31ab99ea2b78aa2eb9 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Mon, 12 Aug 2013 10:21:09 +1000 Subject: updates for tests --- tox.ini | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index e4d4147..14d2d9c 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py26, py27, py33 +envlist = pep8, pyflakes, py26, py27, py33 [testenv] sitepackages = True @@ -12,7 +12,30 @@ setenv = VIRTUAL_ENV={envdir} LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=C -deps = -U - -r{toxinidir}/requirements.txt +deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = {envpython} setup.py test \ No newline at end of file +commands = + python setup.py testr --slowest --testr-args='{posargs}' + +[tox:jenkins] +downloadcache = ~/cache/pip + +[testenv:pep8] +commands = flake8 + +[testenv:cover] +commands = + python setup.py testr --coverage + +[testenv:pyflakes] +deps = pyflakes + -r{toxinidir}/requirements.txt +commands = pyflakes turbo-hipster setup.py + +[testenv:venv] +commands = {posargs} + +[flake8] +ignore = E125,H +show-source = True +exclude = .venv,.tox,dist,doc,build,*.egg -- cgit v1.2.1