2021-01-18 00:02:07 +00:00
|
|
|
# This file is a local convenience. It is not a substitute for the full CI
|
|
|
|
# suite, and does not cover the full range of Python versions for Mitogen.
|
|
|
|
|
|
|
|
# I use this on Ubuntu 20.04, with the following additions
|
|
|
|
#
|
|
|
|
# sudo add-apt-repository ppa:deadsnakes/ppa
|
|
|
|
# sudo apt update
|
|
|
|
# sudo apt install python3.5 python3.6 python3.7 python3.9 tox libsasl2-dev libldap2-dev libssl-dev ssh-pass
|
|
|
|
|
|
|
|
# Last version to support each python version
|
|
|
|
#
|
2021-11-10 22:34:32 +00:00
|
|
|
# Python tox virt'env pip A cntllr A target coverage
|
2021-02-21 20:56:59 +00:00
|
|
|
# ========== ======== ======== ======== ======== ======== ========
|
|
|
|
# python2.4 1.4 1.8 1.1 2.3?
|
2021-01-18 00:02:07 +00:00
|
|
|
# python2.5 1.6.1 1.9.1 1.3.1 ???
|
2021-11-10 22:34:32 +00:00
|
|
|
# python2.6 2.9.1 15.2.0 9.0.3 2.6.20 2.13 4.5.4
|
|
|
|
# python2.7 20.3 2.11
|
|
|
|
# python3.5 2.11
|
|
|
|
# python3.6 2.11
|
|
|
|
# python3.7 2.11
|
|
|
|
|
|
|
|
# Ansible Dependency
|
|
|
|
# ================== ======================
|
|
|
|
# ansible <= 2.9
|
|
|
|
# ansible == 2.10.* ansible-base ~= 2.10.0
|
|
|
|
# ansible == 3.* ansible-base ~= 2.10.0
|
|
|
|
# ansible == 4.* ansible-core ~= 2.11.0
|
|
|
|
# ansible == 5.* ansible-core ~= 2.12.0
|
2021-02-21 20:56:59 +00:00
|
|
|
|
|
|
|
# pip --no-python-version-warning
|
|
|
|
# pip --disable-pip-version-check
|
2021-01-18 00:02:07 +00:00
|
|
|
|
2021-11-10 01:05:37 +00:00
|
|
|
# TODO distros=-py3
|
|
|
|
|
2018-03-14 00:23:24 +00:00
|
|
|
[tox]
|
|
|
|
envlist =
|
2019-02-09 20:01:01 +00:00
|
|
|
init,
|
2021-12-08 22:47:28 +00:00
|
|
|
py{27,36}-mode_ansible-ansible{2.10,3,4},
|
|
|
|
py{39}-mode_ansible-ansible{2.10,3,4,5},
|
2021-11-10 01:05:37 +00:00
|
|
|
py{27,36,39}-mode_mitogen-distro_centos{6,7,8},
|
|
|
|
py{27,36,39}-mode_mitogen-distro_debian{9,10,11},
|
|
|
|
py{27,36,39}-mode_mitogen-distro_ubuntu{1604,1804,2004},
|
2019-02-09 20:01:01 +00:00
|
|
|
report,
|
2021-01-18 00:02:07 +00:00
|
|
|
requires =
|
|
|
|
tox-factor
|
2018-03-14 00:23:24 +00:00
|
|
|
|
|
|
|
[testenv]
|
2021-01-18 00:02:07 +00:00
|
|
|
basepython =
|
|
|
|
py26: python2.6
|
|
|
|
py27: python2.7
|
2021-02-21 20:56:59 +00:00
|
|
|
py35: python3.5
|
2021-01-18 00:02:07 +00:00
|
|
|
py36: python3.6
|
|
|
|
py37: python3.7
|
|
|
|
py38: python3.8
|
|
|
|
py39: python3.9
|
2021-11-10 01:05:37 +00:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/tests/requirements.txt
|
|
|
|
mode_ansible: -r{toxinidir}/tests/ansible/requirements.txt
|
|
|
|
ansible2.3: ansible=2.3.3.0
|
|
|
|
ansible2.4: ansible=2.4.6.0
|
|
|
|
ansible2.8: ansible=2.8.3
|
|
|
|
ansible2.9: ansible=2.9.6
|
|
|
|
ansible2.10: ansible-base<2.10.14
|
|
|
|
ansible2.10: ansible==2.10.0
|
2021-11-10 22:34:32 +00:00
|
|
|
ansible3: ansible-base<2.10.14
|
|
|
|
ansible3: ansible==3.4.0
|
|
|
|
ansible4: ansible==4.8.0
|
2021-12-08 13:13:25 +00:00
|
|
|
ansible5: ansible==5.0.1
|
2021-02-21 20:56:59 +00:00
|
|
|
install_command =
|
|
|
|
python -m pip --no-python-version-warning install {opts} {packages}
|
2021-01-18 00:02:07 +00:00
|
|
|
commands_pre =
|
|
|
|
mode_ansible: {toxinidir}/.ci/ansible_install.py
|
|
|
|
mode_debops_common: {toxinidir}/.ci/debops_common_install.py
|
2021-11-10 01:05:37 +00:00
|
|
|
mode_localhost: {toxinidir}/.ci/localhost_ansible_install.py
|
2021-01-18 00:02:07 +00:00
|
|
|
mode_mitogen: {toxinidir}/.ci/mitogen_install.py
|
2018-03-14 00:23:24 +00:00
|
|
|
commands =
|
2021-02-21 20:56:59 +00:00
|
|
|
mode_ansible: {toxinidir}/.ci/ansible_tests.py
|
2021-01-18 00:02:07 +00:00
|
|
|
mode_debops_common: {toxinidir}/.ci/debops_common_tests.py
|
2021-11-10 01:05:37 +00:00
|
|
|
mode_localhost: {toxinidir}/.ci/localhost_ansible_tests.py
|
2021-01-18 00:02:07 +00:00
|
|
|
mode_mitogen: {toxinidir}/.ci/mitogen_tests.py
|
|
|
|
passenv =
|
2021-02-21 20:56:59 +00:00
|
|
|
ANSIBLE_*
|
2021-11-10 01:05:37 +00:00
|
|
|
AWS_ACCESS_KEY_ID
|
|
|
|
AWS_DEFAULT_REGION
|
|
|
|
AWS_SECRET_ACCESS_KEY
|
2021-01-18 00:02:07 +00:00
|
|
|
HOME
|
2019-02-09 20:01:01 +00:00
|
|
|
setenv =
|
2022-04-20 13:06:10 +00:00
|
|
|
ANSIBLE_STRATEGY = mitogen_linear
|
2019-02-09 20:01:01 +00:00
|
|
|
NOCOVERAGE_ERASE = 1
|
|
|
|
NOCOVERAGE_REPORT = 1
|
2021-11-10 01:05:37 +00:00
|
|
|
# Only applicable to MODE=mitogen
|
2021-01-18 00:02:07 +00:00
|
|
|
distro_centos5: DISTRO=centos5
|
|
|
|
distro_centos6: DISTRO=centos6
|
|
|
|
distro_centos7: DISTRO=centos7
|
2021-02-21 20:56:59 +00:00
|
|
|
distro_centos8: DISTRO=centos8
|
|
|
|
distro_debian9: DISTRO=debian9
|
|
|
|
distro_debian10: DISTRO=debian10
|
|
|
|
distro_debian11: DISTRO=debian11
|
|
|
|
distro_ubuntu1604: DISTRO=ubuntu1604
|
|
|
|
distro_ubuntu1804: DISTRO=ubuntu1804
|
|
|
|
distro_ubuntu2004: DISTRO=ubuntu2004
|
2021-11-10 01:05:37 +00:00
|
|
|
# Note the plural, only applicable to MODE=ansible
|
2021-02-21 20:56:59 +00:00
|
|
|
distros_centos: DISTROS=centos6 centos7 centos8
|
2021-01-18 00:02:07 +00:00
|
|
|
distros_centos5: DISTROS=centos5
|
2021-02-21 20:56:59 +00:00
|
|
|
distros_centos6: DISTROS=centos6
|
|
|
|
distros_centos7: DISTROS=centos7
|
|
|
|
distros_centos8: DISTROS=centos8
|
|
|
|
distros_debian: DISTROS=debian9 debian10 debian11
|
|
|
|
distros_debian9: DISTROS=debian9
|
|
|
|
distros_debian10: DISTROS=debian10
|
|
|
|
distros_debian11: DISTROS=debian11
|
|
|
|
distros_ubuntu: DISTROS=ubuntu1604 ubuntu1804 ubuntu2004
|
|
|
|
distros_ubuntu1604: DISTROS=ubuntu1604
|
|
|
|
distros_ubuntu1804: DISTROS=ubuntu1804
|
|
|
|
distros_ubuntu2004: DISTROS=ubuntu2004
|
2021-01-18 00:02:07 +00:00
|
|
|
mode_ansible: MODE=ansible
|
|
|
|
mode_debops_common: MODE=debops_common
|
|
|
|
mode_mitogen: MODE=mitogen
|
2022-04-20 13:06:10 +00:00
|
|
|
strategy_linear: ANSIBLE_STRATEGY=linear
|
2021-11-10 01:05:37 +00:00
|
|
|
whitelist_externals =
|
|
|
|
docker
|
|
|
|
docker-credential-secretservice
|
|
|
|
echo
|
|
|
|
gpg2
|
|
|
|
pass
|
2019-02-09 20:01:01 +00:00
|
|
|
|
|
|
|
[testenv:init]
|
2021-01-18 00:02:07 +00:00
|
|
|
basepython = python3
|
2019-02-09 20:01:01 +00:00
|
|
|
commands =
|
|
|
|
coverage erase
|
|
|
|
deps =
|
2021-01-18 00:02:07 +00:00
|
|
|
coverage==4.5.4
|
2019-02-09 20:01:01 +00:00
|
|
|
|
|
|
|
[testenv:report]
|
2021-01-18 00:02:07 +00:00
|
|
|
basepython = python3
|
2019-02-09 20:01:01 +00:00
|
|
|
commands =
|
|
|
|
coverage html
|
|
|
|
echo "coverage report is at file://{toxinidir}/htmlcov/index.html"
|
|
|
|
deps =
|
2021-01-18 00:02:07 +00:00
|
|
|
coverage==4.5.4
|
2019-02-09 20:01:01 +00:00
|
|
|
whitelist_externals =
|
|
|
|
echo
|
2018-03-14 00:23:24 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
2021-01-18 00:02:07 +00:00
|
|
|
basepython = python3
|
2018-03-14 00:23:24 +00:00
|
|
|
changedir = docs
|
|
|
|
commands =
|
|
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|