2018-03-14 00:23:24 +00:00
|
|
|
[tox]
|
|
|
|
envlist =
|
2019-02-09 20:01:01 +00:00
|
|
|
init,
|
2018-03-14 00:23:24 +00:00
|
|
|
py26,
|
|
|
|
py27,
|
2018-10-02 23:02:42 +00:00
|
|
|
py35,
|
|
|
|
py36,
|
2019-01-27 19:54:07 +00:00
|
|
|
py37,
|
2019-02-09 20:01:01 +00:00
|
|
|
report,
|
2018-03-14 00:23:24 +00:00
|
|
|
|
|
|
|
[testenv]
|
2019-01-29 05:42:28 +00:00
|
|
|
usedevelop = True
|
2018-03-14 00:23:24 +00:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/dev_requirements.txt
|
2018-11-04 21:17:09 +00:00
|
|
|
-r{toxinidir}/tests/ansible/requirements.txt
|
2018-03-14 00:23:24 +00:00
|
|
|
|
|
|
|
commands =
|
2018-06-18 18:43:50 +00:00
|
|
|
{posargs:bash run_tests}
|
|
|
|
whitelist_externals =
|
|
|
|
bash
|
2019-02-09 20:01:01 +00:00
|
|
|
setenv =
|
|
|
|
NOCOVERAGE_ERASE = 1
|
|
|
|
NOCOVERAGE_REPORT = 1
|
|
|
|
|
|
|
|
[testenv:init]
|
|
|
|
commands =
|
|
|
|
coverage erase
|
|
|
|
deps =
|
|
|
|
coverage
|
|
|
|
|
|
|
|
[testenv:report]
|
|
|
|
commands =
|
|
|
|
coverage html
|
|
|
|
echo "coverage report is at file://{toxinidir}/htmlcov/index.html"
|
|
|
|
deps =
|
|
|
|
coverage
|
|
|
|
whitelist_externals =
|
|
|
|
echo
|
2018-03-14 00:23:24 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
basepython = python
|
|
|
|
changedir = docs
|
|
|
|
commands =
|
|
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|