28 lines
852 B
INI
28 lines
852 B
INI
[tox]
|
|
skipsdist=True
|
|
envlist = clean,ansible{2.12,2.13}-py{38,39,310}-{with_constraints,without_constraints}
|
|
|
|
[testenv]
|
|
deps =
|
|
pytest
|
|
pytest-cov
|
|
ansible2.12: ansible-core>2.12,<2.13
|
|
ansible2.13: ansible-core>2.13,<2.14
|
|
!ansible2.12-!ansible2.13: ansible-core
|
|
pytest-ansible-units
|
|
-rtest-requirements.txt
|
|
with_constraints: -rtests/unit/constraints.txt
|
|
commands = pytest --cov-report html --cov plugins/callback --cov plugins/inventory --cov plugins/lookup --cov plugins/module_utils --cov plugins/modules plugins {posargs:tests/}
|
|
|
|
[testenv:clean]
|
|
deps = coverage
|
|
skip_install = true
|
|
commands = coverage erase
|
|
|
|
[testenv:complexity-report]
|
|
deps =
|
|
# See: https://github.com/lordmauve/flake8-html/issues/30
|
|
flake8>=3.3.0,<5.0.0'
|
|
flake8-html
|
|
commands = -flake8 --select C90 --max-complexity 10 --format=html --htmldir={posargs} plugins
|