-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
44 lines (41 loc) · 1.04 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
[tox]
minversion = 1.6
envlist = molecule,linters
skipsdist = True
skip_missing_interpreters = True
[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
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
MOLECULE_NO_LOG=0
passenv =
ANSIBLE_*
CURL_CA_BUNDLE
DOCKER_*
HOME
MOLECULE_*
REQUESTS_CA_BUNDLE
SSH_AUTH_SOCK
SSL_CERT_FILE
TERM
deps = -r{toxinidir}/test-requirements.txt
[testenv:molecule]
commands =
ansible-galaxy collection install containers.podman
molecule test --all
[testenv:linters]
whitelist_externals = bash
commands =
ansible-lint -x yaml[line-length] --exclude molecule --exclude zuul
setenv =
PYTHONUNBUFFERED = 1