tripleo-quickstart-extras/tox.ini
Daniel Bengtsson 7480810fd0 Use python -m pip instead pip command.
It's recommand to use this way. With tox is not really necessary to do
it but it can be good to use it. See this article:

https://snarky.ca/why-you-should-use-python-m-pip/

For example python -m pip executes pip using the Python interpreter
you specified as python.

Change-Id: I99ba462eb3558bb45b8143cc2d20e72f8455033f
2019-12-12 09:37:22 +01:00

52 lines
1.1 KiB
INI

[tox]
minversion = 3.4.0
envlist = linters
skipdist = True
[testenv]
usedevelop = True
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}