[tox]
envlist = pypy, py27, lint, sphinx

[testenv]
# We want modern pip so we can install packages that only have wheels:
deps = pip>=1.5.6
# Change out out of the source directory, so we are testing the installed
# version.
changedir = {envtmpdir}
commands =
    pip install Flocker[dev]
    trial --rterrors flocker
setenv =
    PYTHONHASHSEED=random

[testenv:pypy]
basepython = pypy

[testenv:py27]
basepython = python2.7

[testenv:lint]
basepython = python2.7
deps = flake8
changedir = {toxinidir}
commands = flake8 --exclude=_version.py flocker

[testenv:sphinx]
basepython = python2.7
changedir = {toxinidir}
commands =
    pip install Flocker[doc]
    rm -rf docs/_build/html
    sphinx-build -a -b spelling docs/ docs/_build/spelling
    sphinx-build -a -b html docs/ docs/_build/html
    sphinx-build -a -b linkcheck docs/ docs/_build/linkcheck

[tox]
envlist = pypy, py27, lint, sphinx

[testenv]
# We want modern pip so we can install packages that only have wheels:
deps = pip>=1.5.6
# Change out out of the source directory, so we are testing the installed
# version.
changedir = {envtmpdir}
commands =
    pip install Flocker[dev]
    trial --rterrors flocker
setenv =
    PYTHONHASHSEED=random

[testenv:pypy]
basepython = pypy

[testenv:py27]
basepython = python2.7

[testenv:lint]
basepython = python2.7
deps = flake8
changedir = {toxinidir}
commands = flake8 --exclude=_version.py flocker

[testenv:sphinx]
basepython = python2.7
changedir = {toxinidir}
commands =
    pip install Flocker[doc]
    rm -rf docs/_build/html
    sphinx-build -a -b spelling docs/ docs/_build/spelling
    sphinx-build -a -b html docs/ docs/_build/html
    sphinx-build -a -b linkcheck docs/ docs/_build/linkcheck

[testenv:admin]
basepython = python2.7
usedevelop = True
commands = trial --rterrors admin

Add admin environment for runnning tests for admin commands.
Add admin environment for runnning tests for admin commands.
