-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
tox.ini
79 lines (75 loc) · 1.69 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[tox]
envlist =
lint
pkg
py
minversion = 4.0.16
ignore_basepython_conflict = True
skip_missing_interpreters = True
skipdist = True
[testenv]
usedevelop = True
setenv =
ANSIBLE_FORCE_COLOR={env:ANSIBLE_FORCE_COLOR:1}
ANSIBLE_INVENTORY={toxinidir}/tests/hosts.ini
ANSIBLE_NOCOWS=1
ANSIBLE_RETRY_FILES_ENABLED=0
ANSIBLE_VERBOSITY={env:ANSIBLE_VERBOSITY:0}
PIP_DISABLE_PIP_VERSION_CHECK=1
PY_COLORS={env:PY_COLORS:1}
# MOLECULE_DEBUG=1
# pip: Avoid 2020-01-01 warnings: https://github.com/pypa/pip/issues/6207
PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command
PYTHONDONTWRITEBYTECODE=1
passenv =
ANSIBLE_*
CI
CURL_CA_BUNDLE
GITHUB_*
DOCKER_*
MOLECULE_*
PYTEST_OPTIONS
REQUESTS_CA_BUNDLE
SSH_AUTH_SOCK
SSL_CERT_FILE
TERM
TOXENV
TRAVIS
TRAVIS_*
TWINE_*
allowlist_externals =
bash
rm
deps =
; {[testenv]deps}
paramiko>=2.5.0
molecule[docker]>=3.1
pytest
pytest-instafail
pytest-molecule
# DO NOT EVER ENABLE THIS, AS WE MUST RUN ISOLATED, otherwise the real
# selinux package from the system would be importable and we would fail
# to test our shim module.
sitepackages = false
commands =
python -c "import selinux"
# check for conflicts after install
python -m pip check
# pytest --color=yes {tty:-s:-s}
[testenv:lint]
deps =
pip>=19.1.1
pre-commit>=1.18.3
setuptools>=39.0
commands =
python -m pre_commit run -a
[testenv:pkg]
deps =
twine>=4.0.2
build>=0.9.0
commands =
rm -rf {toxinidir}/dist
python -m build \
--outdir {toxinidir}/dist/ \
{toxinidir}
python -m twine check --strict {toxinidir}/dist/*