forked from rdo-infra/rdo-jobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (49 loc) · 1.22 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
[tox]
minversion = 1.6
envlist = docs,linters,molecule
skipsdist = True
# NOTE: Avoid false positives by not skipping missing interpreters.
skip_missing_interpreters = False
[testenv]
basepython = python3
install_command = pip install {opts} {packages}
setenv =
ANSIBLE_FORCE_COLOR=1
ANSIBLE_INVENTORY={toxinidir}/test/hosts.ini
ANSIBLE_NOCOWS=1
ANSIBLE_RETRY_FILES_ENABLED=0
ANSIBLE_STDOUT_CALLBACK=debug
MOLECULE_REPORT={envdir}/log/reports.html
PY_COLORS=1
VIRTUAL_ENV={envdir}
# Avoid 2020-01-01 warnings: https://github.com/pypa/pip/issues/6207
PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command
PIP_DISABLE_PIP_VERSION_CHECK=1
passenv =
ANSIBLE_*
CURL_CA_BUNDLE
DOCKER_*
MOLECULE_*
PYTEST_*
REQUESTS_CA_BUNDLE
SSH_AUTH_SOCK
SSL_CERT_FILE
TERM
deps = -r{toxinidir}/test-requirements.txt
[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html {posargs}
[testenv:venv]
commands = {posargs}
[testenv:linters]
deps =
pre-commit
commands =
python -m pre_commit run -a
[testenv:molecule]
basepython = python3
deps =
-r molecule-requirements.txt
commands_pre =
python --version
commands =
molecule test {posargs}