# Tox (http://tox.testrun.org/) is a tool for running tests in multiple
# virtualenvs. This configuration file will run the test suite on all
# supported Python versions. To use it, "pip install tox" and then run
# "tox" from this directory.

[tox]
envlist = py26, py27

[testenv]
changedir = tests
deps = lettuce
commands = lettuce

# Tox (http://tox.testrun.org/) is a tool for running tests in multiple
# virtualenvs. This configuration file will run the test suite on all
# supported Python versions. To use it, "pip install tox" and then run
# "tox" from this directory.

[tox]
envlist = py26, py27, rtfd

[testenv]
changedir = tests
deps = lettuce
commands = lettuce

[testenv:rtfd]
# Verify the documentation will build for readthedocs.org
basepython = python2.7
changedir = docs
commands =
    sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
deps =
    sphinx

Add Tox test environment for documentation
Add Tox test environment for documentation

Verifies that the documentation builds without errors/warnings in an
environment similar to Read The Docs.
