ansible-role-collect-logs/tox.ini
Wesley Hayutin c3483e8830 Avoid using openstack constraints
This repository should not make use of openstack containt files and addresses sanity job failure
caused by switch of nodeset image used for testing.

Change-Id: I7f3eab6ac44f53451114dcd8841bf4300500ab11
2021-06-04 13:52:42 +00:00

73 lines
1.8 KiB
INI

[tox]
# for tty option
minversion = 3.4.0
envlist = docs, linters, molecule
skipdist = True
requires =
tox-ansible >= 1.0.5
[testenv]
usedevelop = True
# Do not use openstack constraint files here, this repository is used for CI
# and should not be subject to these.
passenv =
ANSIBLE_*
CURL_CA_BUNDLE
DOCKER_*
HOME
REQUESTS_CA_BUNDLE
SSH_AUTH_SOCK
SSL_CERT_FILE
TERM
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = bash
[testenv:bindep]
basepython = python3
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files.
deps = bindep
commands = bindep test
[testenv:linters]
basepython = python3
setenv =
ANSIBLE_LIBRARY=./library
commands =
# check only modified files:
python -m pre_commit run -a
[testenv:releasenotes]
basepython = python3
whitelist_externals = bash
commands = bash -c ci-scripts/releasenotes_tox.sh
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:molecule]
setenv =
ANSIBLE_FORCE_COLOR=1
ANSIBLE_CALLBACK_WHITELIST=profile_tasks
ANSIBLE_SHOW_CUSTOM_STATS=1
PYTHONPATH={env:PYTHONPATH:}:library
# failsafe mechanism to avoid accidental disablement of tests
# 3 molecule tests expected
PYTEST_REQPASS=3
deps =
ansible>=2.9,<2.10
molecule[test,docker]>=3.2.2,<3.3 # MIT
pytest-molecule>=1.3.4
pytest-plus # provides support for PYTEST_REQPASS
commands =
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} -k molecule {posargs}
[testenv:ansible]
description = Used as base for all tox-ansible environments
basepython = python3.6