mirror of
https://github.com/openshift/openshift-ansible.git
synced 2026-02-05 06:46:04 +01:00
** This reverts 879fe0ec0e in favor of using a specific version of setuptools.
** Most people consider the deprecation of setuptools `tests_require` in 40.0.0 (this still causes errors). Previous versions also give errors
but for different missing features. Setuptools 45.0.0 appears new enough to get rid of said errors while still including the `tests_require` feature.
Considering 45.0.0 the sweetspot. This simplifies the travis config changes and setup.py changes. This also ensures we stick to specific versions.
26 lines
647 B
INI
26 lines
647 B
INI
[tox]
|
|
envlist =
|
|
py39-{unit,flake8,pylint,yamllint,ansible_syntax}
|
|
skipsdist=True
|
|
skip_missing_interpreters=True
|
|
|
|
[testenv]
|
|
skip_install=True
|
|
setenv =
|
|
ANSIBLE_CONFIG = ./ansible.cfg
|
|
ANSIBLE_INVENTORY = {toxinidir}/test/tox-inventory.txt
|
|
ANSIBLE_LOG_PATH=/tmp/tox/ansible/ansible.log
|
|
ANSIBLE_LOCAL_TEMP=/tmp/tox/ansible
|
|
ANSIBLE_CACHE_PLUGIN_CONNECTION=/tmp/tox/ansible/facts
|
|
|
|
deps =
|
|
-rrequirements.txt
|
|
-rtest-requirements.txt
|
|
|
|
commands =
|
|
unit: pytest {posargs}
|
|
flake8: flake8 {posargs}
|
|
pylint: python setup.py lint
|
|
yamllint: python setup.py yamllint
|
|
ansible_syntax: python setup.py ansible_syntax
|