
If there are no SECRET_KEY or ARA_SECRET_KEY environment variables set or if there is no configuration file with the SECRET_KEY variable set, settings.py will generate a random secret key once and it will be persisted to the default configuration. Change-Id: Idf2f1ee5f8a70bc2411de51a154bc4504705d89a
63 lines
1.7 KiB
INI
63 lines
1.7 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
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:linters]
|
|
commands = {toxinidir}/tests/linters.sh
|
|
|
|
[testenv:py3]
|
|
commands = ara-manage test ara
|
|
setenv =
|
|
ARA_DEBUG=true
|
|
ARA_LOG_LEVEL=DEBUG
|
|
ARA_BASE_DIR={toxinidir}/.tox/ansible-integration/tmp/ara
|
|
|
|
[testenv:runserver]
|
|
commands =
|
|
ara-manage migrate
|
|
ara-manage collectstatic --clear --no-input
|
|
ara-manage runserver
|
|
setenv =
|
|
ARA_DEBUG=true
|
|
ARA_LOG_LEVEL=DEBUG
|
|
ARA_BASE_DIR={toxinidir}/.tox/ansible-integration/tmp/ara
|
|
|
|
# Temporary venv to help bootstrap integration
|
|
[testenv:ansible-integration]
|
|
deps =
|
|
git+https://git.openstack.org/openstack/ara-plugins@master#egg=ara_plugins
|
|
git+https://git.openstack.org/openstack/ara-clients@master#egg=ara_clients
|
|
commands =
|
|
rm -rf {toxinidir}/.tox/ansible-integration/tmp/ara
|
|
bash -c 'ANSIBLE_CALLBACK_PLUGINS=$(python -c "import os,ara.plugins; print(os.path.dirname(ara.plugins.__file__))")/callback ansible-playbook {toxinidir}/hacking/test-playbook.yml'
|
|
python {toxinidir}/hacking/validate.py
|
|
setenv =
|
|
ARA_DEBUG=true
|
|
ARA_LOG_LEVEL=DEBUG
|
|
ARA_BASE_DIR={toxinidir}/.tox/ansible-integration/tmp/ara
|
|
whitelist_externals =
|
|
rm
|
|
bash
|
|
|
|
[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
|