Joshua Hesketh | a6e26f5 | 2013-07-29 11:51:20 +1000 | [diff] [blame] | 1 | # Tox (http://tox.testrun.org/) is a tool for running tests |
| 2 | # in multiple virtualenvs. This configuration file will run the |
| 3 | # test suite on all supported python versions. To use it, "pip install tox" |
| 4 | # and then run "tox" from this directory. |
| 5 | |
| 6 | [tox] |
Joshua Hesketh | 27a0e27 | 2013-08-12 10:21:09 +1000 | [diff] [blame^] | 7 | envlist = pep8, pyflakes, py26, py27, py33 |
Joshua Hesketh | a6e26f5 | 2013-07-29 11:51:20 +1000 | [diff] [blame] | 8 | |
| 9 | [testenv] |
| 10 | sitepackages = True |
| 11 | setenv = VIRTUAL_ENV={envdir} |
| 12 | LANG=en_US.UTF-8 |
| 13 | LANGUAGE=en_US:en |
| 14 | LC_ALL=C |
Joshua Hesketh | 27a0e27 | 2013-08-12 10:21:09 +1000 | [diff] [blame^] | 15 | deps = -r{toxinidir}/requirements.txt |
Joshua Hesketh | a6e26f5 | 2013-07-29 11:51:20 +1000 | [diff] [blame] | 16 | -r{toxinidir}/test-requirements.txt |
Joshua Hesketh | 27a0e27 | 2013-08-12 10:21:09 +1000 | [diff] [blame^] | 17 | commands = |
| 18 | python setup.py testr --slowest --testr-args='{posargs}' |
| 19 | |
| 20 | [tox:jenkins] |
| 21 | downloadcache = ~/cache/pip |
| 22 | |
| 23 | [testenv:pep8] |
| 24 | commands = flake8 |
| 25 | |
| 26 | [testenv:cover] |
| 27 | commands = |
| 28 | python setup.py testr --coverage |
| 29 | |
| 30 | [testenv:pyflakes] |
| 31 | deps = pyflakes |
| 32 | -r{toxinidir}/requirements.txt |
| 33 | commands = pyflakes turbo-hipster setup.py |
| 34 | |
| 35 | [testenv:venv] |
| 36 | commands = {posargs} |
| 37 | |
| 38 | [flake8] |
| 39 | ignore = E125,H |
| 40 | show-source = True |
| 41 | exclude = .venv,.tox,dist,doc,build,*.egg |