[tox]
envlist = docs,py27
minversion = 1.6
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
         LANG=en_US.UTF-8
         LANGUAGE=en_US:en
         LC_ALL=C
deps = -r{toxinidir}/requirements.txt
commands =
  python setup.py test --slowest --testr-args='{posargs}'

[testenv:venv]
commands = {posargs}

[testenv:docs]
commands =
    sphinx-build -b html -W doc/source/ doc/build/html
    sphinx-build -b latex -W doc/source/ doc/build/latex
    sphinx-build -b pdf -W doc/source/ doc/build/pdf