
Parameterize microk8s snap installation to choose channel and confinement. In case of strict confinement, change the group and escalate the privileges to run microk8s command. Ensure ~/.local/share directory exists that allows running juju commands in strict confinement mode. Fix linting issues. Change-Id: Iba52349df9c6d077cd33a4786359fc2d54182068
26 lines
712 B
INI
26 lines
712 B
INI
[tox]
|
|
minversion = 3.2.0
|
|
skipsdist = True
|
|
envlist = linters
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:linters]
|
|
allowlist_externals =
|
|
bash
|
|
{toxinidir}/tools/ansible-lint-roles-cache.sh
|
|
setenv =
|
|
ANSIBLE_ROLES_PATH={env:ANSIBLE_ROLES_PATH:{toxinidir}/.cache/ansible-lint/opendev/base-jobs/roles:{toxinidir}/.cache/ansible-lint/opendev/system-config/roles:{toxinidir}/.cache/ansible-lint/zuul/zuul-jobs/roles:{toxinidir}/.cache/ansible-lint/openstack/openstack-zuul-jobs/roles}
|
|
commands =
|
|
flake8 {posargs}
|
|
{toxinidir}/tools/ansible-lint-roles-cache.sh
|
|
ansible-lint
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
exclude = .venv,.tox,dist,doc,build,*.egg,.cache
|