forked from openstack-k8s-operators/edpm-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (53 loc) · 2.08 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tox]
minversion = 4.0.0
envlist = linters
ignore_base_python_conflict = True
[testenv]
basepython = python3
usedevelop = True
passenv = *
setenv =
ANSIBLE_SKIP_CONFLICT_CHECK=1
ANSIBLE_ACTION_PLUGINS={toxinidir}/edpm_ansible/roles.galaxy/config_template/action:{toxinidir}/edpm_ansible/ansible_plugins/action
ANSIBLE_CALLBACK_PLUGINS={toxinidir}/edpm_ansible/ansible_plugins/callback
ANSIBLE_FILTER_PLUGINS={toxinidir}/edpm_ansible/ansible_plugins/filter
ANSIBLE_LIBRARY={toxinidir}/edpm_ansible/roles.galaxy/config_template/library:{toxinidir}/edpm_ansible/ansible_plugins/modules
ANSIBLE_MODULE_UTILS={toxinidir}/edpm_ansible/ansible_plugins/module_utils
ANSIBLE_ROLES_PATH={toxinidir}/edpm_ansible/roles.galaxy:{toxinidir}/edpm_ansible/roles
ANSIBLE_INVENTORY={toxinidir}/tests/hosts.ini
ANSIBLE_NOCOWS=1
ANSIBLE_RETRY_FILES_ENABLED=0
ANSIBLE_STDOUT_CALLBACK=debug
ANSIBLE_LOG_PATH={envlogdir}/ansible-execution.log
VIRTUAL_ENV={envdir}
LC_ALL=en_US.UTF-8
# pip: Avoid 2020-01-01 warnings: https://github.com/pypa/pip/issues/6207
# paramiko CryptographyDeprecationWarning: https://github.com/ansible/ansible/issues/52598
PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command,ignore::UserWarning
PIP_DISABLE_PIP_VERSION_CHECK=1
sitepackages = True
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
-c {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/zed}
commands =
# ansible-core 2.13.6 installed with py38 does not provide a way to set
# timeout with ansible-galaxy command.
ansible-galaxy install -fr {toxinidir}/edpm_ansible/requirements.yml
stestr run {posargs}
allowlist_externals =
bash
tox
true
ansible-galaxy
[testenv:linters]
skip_install = True
sitepackages = False
deps =
pre-commit
virtualenv
commands =
bash -c "ANSIBLE_ROLES_PATH='{toxinidir}/edpm_ansible/roles.galaxy' \
ansible-galaxy install -fr {toxinidir}/edpm_ansible/requirements.yml"
ansible-galaxy install -fr {toxinidir}/edpm_ansible/requirements.yml
python -m pre_commit run -a