2019-09-27 20:00:44 +00:00
|
|
|
[tox]
|
2019-10-23 11:04:57 +00:00
|
|
|
minversion = 3.14.0
|
2019-09-27 20:00:44 +00:00
|
|
|
envlist =
|
|
|
|
lint
|
2019-10-23 11:04:57 +00:00
|
|
|
py{37}-ansible{28}-unit
|
2019-09-27 20:00:44 +00:00
|
|
|
skipdist = True
|
|
|
|
skip_missing_interpreters = True
|
|
|
|
isolated_build = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
passenv = *
|
|
|
|
setenv =
|
|
|
|
ANSIBLE_CALLABLE_WHITELIST={env:ANSIBLE_CALLABLE_WHITELIST:timer,profile_roles}
|
|
|
|
PYTHONDONTWRITEBYTECODE=1
|
2019-11-16 01:06:17 +00:00
|
|
|
PYTEST_ADDOPTS=molecule_hetznercloud/test/unit/ --cov={toxinidir}/molecule_hetznercloud/ --no-cov-on-fail {env:PYTEST_ADDOPTS:-n auto}
|
2019-09-27 20:00:44 +00:00
|
|
|
deps =
|
|
|
|
ansible28: ansible>=2.8,<2.9
|
|
|
|
extras =
|
|
|
|
test
|
|
|
|
commands =
|
|
|
|
python -m pytest {posargs}
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
commands =
|
|
|
|
python -m pre_commit run {posargs:--all}
|
|
|
|
deps = pre-commit>=1.18.1
|
|
|
|
skip_install = true
|
|
|
|
usedevelop = false
|