[tox]
envlist = 
# Jython 2.7b1 support pending fix for Jython incompat. w/ pip's vendored-in
# requests -> html5 libraries.  See
# https://github.com/html5lib/html5lib-python/pull/150
#   py27,py33,py34,pypy,pypy3,jython,coverage,docs
    py27,py33,py34,py35,pypy,pypy3,coverage,docs

[testenv]
commands = 
    python setup.py -q test -q

[testenv:coverage]
basepython =
    python2.7
commands = 
    nosetests --with-xunit --with-xcoverage
deps =
    nose
    coverage
    nosexcover

[testenv:docs]
basepython =
    python2.7
commands = 
    sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
    sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
deps =
    Sphinx
