Remove tox skipdist=True
This does not work with latest tox 4.x. Also fixes few other issues in tox.ini. Closes-Bug: #2000357 Change-Id: Ia3fe0e1de08f47ec434d04a5baae2b476132be19
This commit is contained in:
parent
d9ac151c53
commit
254ff2bd1c
11
tox.ini
11
tox.ini
|
@ -1,7 +1,6 @@
|
|||
[tox]
|
||||
minversion = 3.18.0
|
||||
envlist = docs,linters
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
usedevelop = True
|
||||
|
@ -58,13 +57,12 @@ deps = bindep
|
|||
commands = bindep test
|
||||
|
||||
[testenv:linters]
|
||||
skipsdist = True
|
||||
skip_install = True
|
||||
sitepackages = False
|
||||
deps =
|
||||
pre-commit
|
||||
virtualenv
|
||||
-r {toxinidir}/ansible-requirements.txt
|
||||
-r {toxinidir}/ansible-requirements.txt
|
||||
commands =
|
||||
bash -c "ANSIBLE_ROLES_PATH='{toxinidir}/tripleo_ansible/roles.galaxy' \
|
||||
ansible-galaxy install --timeout 300 -fr {toxinidir}/tripleo_ansible/requirements.yml"
|
||||
|
@ -100,8 +98,9 @@ commands = {posargs}
|
|||
[testenv:pep8]
|
||||
description = "[deprecated], use linters instead."
|
||||
deps =
|
||||
commands = true
|
||||
skipsdist = True
|
||||
{[testenv:linters]deps}
|
||||
commands =
|
||||
{[testenv:linters]commands}
|
||||
skip_install = True
|
||||
sitepackages = False
|
||||
|
||||
|
@ -119,7 +118,7 @@ commands =
|
|||
cd {toxinidir}/tripleo_ansible/roles/skeleton_test; \
|
||||
molecule --base-config {toxinidir}/.config/molecule/config_podman.yml test --all; \
|
||||
else \
|
||||
echo -e '\n\nNo molecule tests have been executed\nSee https://docs.openstack.org/tripleo-ansible/latest/contributing.html#local-testing-of-new-roles\n\n'; \
|
||||
echo -e '\n\nNo molecule tests have been executed\nSee https://docs.openstack.org/tripleo-ansible/latest/contributing.html\n\n'; \
|
||||
fi"
|
||||
{[testenv:linters]commands}
|
||||
|
||||
|
|
Loading…
Reference in New Issue