1b5274793b
This change uses the same pytest/molecule requirements spec as tripleo-quickstart and breaks out the requirements into their own file. [1] https://review.opendev.org/#/c/713532/ Closes-Bug: #1867035 Change-Id: I728183f608eb7ab9571d66cc8c515fe52f4dafc0
59 lines
1.4 KiB
INI
59 lines
1.4 KiB
INI
[tox]
|
|
minversion = 3.9.0
|
|
envlist = linters
|
|
skipdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
ANSIBLE_FORCE_COLOR=1
|
|
passenv =
|
|
ANSIBLE_*
|
|
CURL_CA_BUNDLE
|
|
DOCKER_*
|
|
MOLECULE_*
|
|
REQUESTS_CA_BUNDLE
|
|
SSH_AUTH_SOCK
|
|
SSL_CERT_FILE
|
|
TERM
|
|
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:docs]
|
|
basepython = python3
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
|
[testenv:releasenotes]
|
|
basepython = python3
|
|
whitelist_externals = bash
|
|
commands = bash -c ci-scripts/releasenotes_tox.sh
|
|
|
|
[testenv:linters]
|
|
basepython = python3
|
|
deps =
|
|
jinja2
|
|
pre-commit
|
|
commands =
|
|
python -m pre_commit run -a
|
|
# TODO(ssbarnea) make is a real pre-commit hook so we can reuse it
|
|
python ci-scripts/validate_jinja2.py
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:molecule]
|
|
deps = -r{toxinidir}/molecule-requirements.txt
|
|
commands =
|
|
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html -rA --molecule-unavailable-driver=fail {tty:-s} {posargs:-k 'molecule and docker'}
|