[testenv]
usedevelop=True
-passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY BRANCH
+setenv =
+ VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:py27]
commands =
- /bin/bash ./run_tests.sh --unit
+ /bin/bash {toxinidir}/tools/run_tests.sh --unit
[testenv:py3]
basepython = python3
[testenv:coverage]
basepython = python3
commands =
- /bin/bash ./run_tests.sh --coverage
+ /bin/bash {toxinidir}/tools/run_tests.sh --coverage
[testenv:functional]
commands =
- /bin/bash ./run_tests.sh --functional
+ /bin/bash {toxinidir}/tools/run_tests.sh --functional
[testenv:functional-py3]
basepython = python3
commands = {[testenv:functional]commands}
+[testenv:docs]
+deps = -rdocs/requirements.txt
+commands =
+ sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+ echo "Generated docs available in {toxinidir}/docs/_build/html"
+whitelist_externals = echo
+
+[testenv:docs-linkcheck]
+deps = -rdocs/requirements.txt
+commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+
[testenv:os-requirements]
commands =
python {toxinidir}/tools/os-requirements-check.py {envdir}