blob: f0e38f0f9bc348aa0f75544089221a50a838e150 [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]
Joshua Hesketh1c156d22013-08-12 10:33:31 +10007envlist = pep8, pyflakes, py27
Joshua Hesketha6e26f52013-07-29 11:51:20 +10008
9[testenv]
Joshua Hesketha6e26f52013-07-29 11:51:20 +100010setenv = VIRTUAL_ENV={envdir}
11 LANG=en_US.UTF-8
12 LANGUAGE=en_US:en
13 LC_ALL=C
Joshua Hesketh3b7765d2013-11-18 13:06:20 +110014usedevelop = True
15install_command = pip install {opts} {packages}
Joshua Hesketh27a0e272013-08-12 10:21:09 +100016deps = -r{toxinidir}/requirements.txt
Joshua Hesketha6e26f52013-07-29 11:51:20 +100017 -r{toxinidir}/test-requirements.txt
Joshua Hesketh27a0e272013-08-12 10:21:09 +100018commands =
19 python setup.py testr --slowest --testr-args='{posargs}'
20
21[tox:jenkins]
22downloadcache = ~/cache/pip
23
24[testenv:pep8]
25commands = flake8
26
27[testenv:cover]
28commands =
29 python setup.py testr --coverage
30
31[testenv:pyflakes]
Joshua Hesketh1c156d22013-08-12 10:33:31 +100032commands = pyflakes turbo_hipster setup.py
Joshua Hesketh27a0e272013-08-12 10:21:09 +100033
34[testenv:venv]
35commands = {posargs}
36
37[flake8]
38ignore = E125,H
39show-source = True
40exclude = .venv,.tox,dist,doc,build,*.egg