Skip to content
Snippets Groups Projects
Commit 1f71aa56 authored by Michal Nasiadka's avatar Michal Nasiadka
Browse files

CI: Support tox4

Depends-On: https://review.opendev.org/866943
Change-Id: Ib3caf7378c1d5e2e9cfe04e36797bd827e99d6c5
parent 62f3c62b
No related branches found
No related tags found
No related merge requests found
[tox] [tox]
minversion = 3.18 minversion = 3.18
skipsdist = True
envlist = py38,linters envlist = py38,linters
ignore_basepython_conflict = True ignore_basepython_conflict = True
[testenv] [testenv]
basepython = python3 basepython = python3
usedevelop = True usedevelop = True
allowlist_externals = find allowlist_externals = bash
find
rm rm
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
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, \
OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE OS_TEST_TIMEOUT OS_STDOUT_CAPTURE,OS_STDERR_CAPTURE,OS_LOG_CAPTURE,OS_TEST_TIMEOUT, \
PYTHON OS_TEST_PATH LISTOPT IDOPTION PYTHON,OS_TEST_PATH,LISTOPT,IDOPTION
commands = commands =
find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete
find . -type d -name "__pycache__" -delete find . -type d -name "__pycache__" -delete
{toxinidir}/tests/link-module-utils.sh {toxinidir} {envsitepackagesdir} bash {toxinidir}/tests/link-module-utils.sh {toxinidir} {envsitepackagesdir}
stestr run --slowest {posargs} stestr run --slowest {posargs}
[testenv:debug] [testenv:debug]
...@@ -32,7 +32,7 @@ setenv = VIRTUAL_ENV={envdir} ...@@ -32,7 +32,7 @@ setenv = VIRTUAL_ENV={envdir}
NOSE_COVER_HTML_DIR={toxinidir}/cover NOSE_COVER_HTML_DIR={toxinidir}/cover
PYTHON=coverage run --source kolla_ansible,ansible/action_plugins,ansible/library,ansible/roles/keystone/files/ --parallel-mode PYTHON=coverage run --source kolla_ansible,ansible/action_plugins,ansible/library,ansible/roles/keystone/files/ --parallel-mode
commands = commands =
{toxinidir}/tests/link-module-utils.sh {toxinidir} {envsitepackagesdir} bash {toxinidir}/tests/link-module-utils.sh {toxinidir} {envsitepackagesdir}
stestr run {posargs} stestr run {posargs}
coverage combine coverage combine
coverage html -d cover coverage html -d cover
...@@ -71,6 +71,7 @@ commands = ...@@ -71,6 +71,7 @@ commands =
[testenv:pdf-docs] [testenv:pdf-docs]
allowlist_externals = make allowlist_externals = make
rm
skip_install = {[testenv:docs]skip_install} skip_install = {[testenv:docs]skip_install}
deps = {[testenv:docs]deps} deps = {[testenv:docs]deps}
commands = commands =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment