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] |
Sean Dague | e850db9 | 2014-11-26 09:11:28 -0500 | [diff] [blame] | 7 | minversion = 1.6 |
Joshua Hesketh | 5cd8ea3 | 2014-03-27 15:28:00 +1100 | [diff] [blame] | 8 | envlist = pep8, py27 |
Joshua Hesketh | a6e26f5 | 2013-07-29 11:51:20 +1000 | [diff] [blame] | 9 | |
| 10 | [testenv] |
Joshua Hesketh | a6e26f5 | 2013-07-29 11:51:20 +1000 | [diff] [blame] | 11 | setenv = VIRTUAL_ENV={envdir} |
| 12 | LANG=en_US.UTF-8 |
| 13 | LANGUAGE=en_US:en |
| 14 | LC_ALL=C |
Joshua Hesketh | 3b7765d | 2013-11-18 13:06:20 +1100 | [diff] [blame] | 15 | usedevelop = True |
| 16 | install_command = pip install {opts} {packages} |
Joshua Hesketh | 27a0e27 | 2013-08-12 10:21:09 +1000 | [diff] [blame] | 17 | deps = -r{toxinidir}/requirements.txt |
Joshua Hesketh | a6e26f5 | 2013-07-29 11:51:20 +1000 | [diff] [blame] | 18 | -r{toxinidir}/test-requirements.txt |
Joshua Hesketh | 27a0e27 | 2013-08-12 10:21:09 +1000 | [diff] [blame] | 19 | commands = |
| 20 | python setup.py testr --slowest --testr-args='{posargs}' |
| 21 | |
Joshua Hesketh | 27a0e27 | 2013-08-12 10:21:09 +1000 | [diff] [blame] | 22 | [testenv:pep8] |
| 23 | commands = flake8 |
| 24 | |
| 25 | [testenv:cover] |
| 26 | commands = |
| 27 | python setup.py testr --coverage |
| 28 | |
Joshua Hesketh | 27a0e27 | 2013-08-12 10:21:09 +1000 | [diff] [blame] | 29 | [testenv:venv] |
| 30 | commands = {posargs} |
| 31 | |
| 32 | [flake8] |
| 33 | ignore = E125,H |
| 34 | show-source = True |
| 35 | exclude = .venv,.tox,dist,doc,build,*.egg |