blob: cfd9e066b5e338dcf7eae590610034673dea9e3a [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
Joshua Hesketh27a0e272013-08-12 10:21:09 +100022[testenv:pep8]
23commands = flake8
24
25[testenv:cover]
26commands =
27 python setup.py testr --coverage
28
Joshua Hesketh27a0e272013-08-12 10:21:09 +100029[testenv:venv]
30commands = {posargs}
31
32[flake8]
33ignore = E125,H
34show-source = True
35exclude = .venv,.tox,dist,doc,build,*.egg