[tox]
envlist = py27, docs, cli

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/workbench
deps =
    git+https://github.com/nedbat/coveragepy.git
    pytest
    pytest-cov
install =
    pip install -e .
commands =
    py.test test/test_server_spinup.py workbench/server workbench/workers workbench/clients
    coverage combine

[pytest]
addopts= -x -m "not exclude" -v --doctest-modules --cov=workbench --cov-report term-missing
python_files=*.py
python_functions=test
norecursedirs=.tox .git timeout_corner docs *.egg-info __pycache__ images notebooks test
    
[testenv:cli]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/workbench
deps =
    git+https://github.com/nedbat/coveragepy.git
    pytest
    pytest-cov
install =
    pip install -e .
commands =
    py.test workbench/clients/workbench_shell.py
    coverage combine

[testenv:docs]
changedir=docs/
deps =
    mock
    pytest
    sphinx
    sphinxcontrib-napoleon
install =
    pip install -e .
commands =
    sphinx-apidoc -f -o . ../workbench
    # sphinx-build -b linkcheck ./ _build/html
    sphinx-build -b html ./ _build/html

[tox]
envlist = py27, docs

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/workbench
deps =
    git+https://github.com/nedbat/coveragepy.git
    pytest
    pytest-cov
install =
    pip install -e .
commands =
    py.test test/test_server_spinup.py workbench/server workbench/workers workbench/clients
    coverage combine

[pytest]
addopts= -x -m "not exclude" -v --doctest-modules --cov=workbench --cov-report term-missing
python_files=*.py
python_functions=test
norecursedirs=.tox .git timeout_corner docs *.egg-info __pycache__ images notebooks test
    
[testenv:docs]
changedir=docs/
deps =
    mock
    pytest
    sphinx
    sphinxcontrib-napoleon
install =
    pip install -e .
commands =
    sphinx-apidoc -f -o . ../workbench
    # sphinx-build -b linkcheck ./ _build/html
    sphinx-build -b html ./ _build/html

Revert "adding cli to the test environments"
Revert "adding cli to the test environments"

This reverts commit 8b3040e8b55ad826065e016bd1c94f2be2f196dc.
