
This will allow us to build the docs properly for hosting on readthedocs. Change-Id: I6770146239350c1b4e0bed880a3bc9c7239eaa79
58 lines
1.4 KiB
INI
58 lines
1.4 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = py3,pep8
|
|
skipdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
sitepackages = False
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages} -c{env:CONSTRAINTS_FILE:/dev/null}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
extras = server
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
setenv =
|
|
# programoutput might end up creating things, don't pollute outside of tov envtmpdir
|
|
ARA_BASE_DIR={env:ARA_BASE_DIR:{envtmpdir}}
|
|
|
|
[testenv:linters]
|
|
commands = {toxinidir}/tests/linters.sh
|
|
|
|
[testenv:py3]
|
|
commands = ara-manage test -v 2 ara
|
|
setenv =
|
|
ARA_DEBUG=true
|
|
ARA_LOG_LEVEL=DEBUG
|
|
ARA_BASE_DIR={env:ARA_BASE_DIR:{envtmpdir}}
|
|
|
|
[testenv:runserver]
|
|
commands =
|
|
ara-manage migrate
|
|
ara-manage runserver
|
|
setenv =
|
|
ARA_DEBUG=true
|
|
ARA_LOG_LEVEL=DEBUG
|
|
ARA_BASE_DIR={env:ARA_BASE_DIR:{envtmpdir}}
|
|
|
|
[testenv:ansible-integration]
|
|
deps = ansible
|
|
commands =
|
|
ansible-playbook -i localhost, --connection=local \
|
|
{toxinidir}/tests/basic.yaml \
|
|
-e ara_api_root_dir={envtmpdir}/.ara {posargs}
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
coverage erase
|
|
coverage run {toxinidir}/ara/server/__main__.py test ara/server
|
|
coverage run -a {toxinidir}/ara/server/__main__.py test ara/api
|
|
coverage html
|