blob: fd5d24eafb3e1ab89eab70e7fc563e58b73b7d84 [file] [log] [blame]
Joshua Hesketha6e26f52013-07-29 11:51:20 +10001# 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 Daguee850db92014-11-26 09:11:28 -05007minversion = 1.6
Joshua Hesketh5cd8ea32014-03-27 15:28:00 +11008envlist = pep8, py27
Joshua Hesketha6e26f52013-07-29 11:51:20 +10009
10[testenv]
Joshua Hesketha6e26f52013-07-29 11:51:20 +100011setenv = VIRTUAL_ENV={envdir}
12 LANG=en_US.UTF-8
13 LANGUAGE=en_US:en
14 LC_ALL=C
Joshua Hesketh3b7765d2013-11-18 13:06:20 +110015usedevelop = True
16install_command = pip install {opts} {packages}
Joshua Hesketh27a0e272013-08-12 10:21:09 +100017deps = -r{toxinidir}/requirements.txt
Joshua Hesketha6e26f52013-07-29 11:51:20 +100018 -r{toxinidir}/test-requirements.txt
Joshua Hesketh27a0e272013-08-12 10:21:09 +100019commands =
20 python setup.py testr --slowest --testr-args='{posargs}'
21
22[tox:jenkins]
23downloadcache = ~/cache/pip
24
25[testenv:pep8]
26commands = flake8
27
28[testenv:cover]
29commands =
30 python setup.py testr --coverage
31
Joshua Hesketh27a0e272013-08-12 10:21:09 +100032[testenv:venv]
33commands = {posargs}
34
35[flake8]
36ignore = E125,H
37show-source = True
38exclude = .venv,.tox,dist,doc,build,*.egg