|
| 1 | +# This file is a local convenience. It is not a substitute for the full CI |
| 2 | +# suite, and does not cover the full range of Python versions for Mitogen. |
| 3 | + |
| 4 | +# I use this on Ubuntu 20.04, with the following additions |
| 5 | +# |
| 6 | +# sudo add-apt-repository ppa:deadsnakes/ppa |
| 7 | +# sudo apt update |
| 8 | +# sudo apt install python3.5 python3.6 python3.7 python3.9 tox libsasl2-dev libldap2-dev libssl-dev ssh-pass |
| 9 | + |
| 10 | +# Last version to support each python version |
| 11 | +# |
| 12 | +# tox vir'env pip ansible coverage |
| 13 | +# ========== ======== ======== ======== ======== ======== |
| 14 | +# python2.4 1.4 1.8 1.1 ??? |
| 15 | +# python2.5 1.6.1 1.9.1 1.3.1 ??? |
| 16 | +# python2.6 2.9.1 15.2.0 9.0.3 2.6.20 4.5.4 |
| 17 | + |
1 | 18 | [tox] |
2 | 19 | envlist = |
3 | 20 | init, |
4 | | - py26, |
5 | | - py27, |
6 | | - py35, |
7 | | - py36, |
8 | | - py37, |
| 21 | + py{27,36,39}-mode_ansible, |
| 22 | + py{27,36,39}-mode_mitogen, |
| 23 | + py{27,36,39}-mode_mitogen-distro_centos7, |
9 | 24 | report, |
| 25 | +requires = |
| 26 | + tox-factor |
10 | 27 |
|
11 | 28 | [testenv] |
12 | | -usedevelop = True |
13 | | -deps = |
14 | | - -r{toxinidir}/dev_requirements.txt |
15 | | - -r{toxinidir}/tests/ansible/requirements.txt |
16 | | - |
| 29 | +basepython = |
| 30 | + py26: python2.6 |
| 31 | + py27: python2.7 |
| 32 | + py36: python3.6 |
| 33 | + py37: python3.7 |
| 34 | + py38: python3.8 |
| 35 | + py39: python3.9 |
| 36 | +commands_pre = |
| 37 | + mode_ansible: {toxinidir}/.ci/ansible_install.py |
| 38 | + mode_debops_common: {toxinidir}/.ci/debops_common_install.py |
| 39 | + mode_mitogen: {toxinidir}/.ci/mitogen_install.py |
17 | 40 | commands = |
18 | | - {posargs:bash run_tests} |
19 | | -whitelist_externals = |
20 | | - bash |
| 41 | + mode_ansible: {toxinidir}/.ci/ansible_tests.py |
| 42 | + mode_debops_common: {toxinidir}/.ci/debops_common_tests.py |
| 43 | + mode_mitogen: {toxinidir}/.ci/mitogen_tests.py |
| 44 | +passenv = |
| 45 | + ANSIBLE_* |
| 46 | + HOME |
21 | 47 | setenv = |
| 48 | + ANSIBLE_SKIP_TAGS = requires_local_sudo |
22 | 49 | NOCOVERAGE_ERASE = 1 |
23 | 50 | NOCOVERAGE_REPORT = 1 |
| 51 | + ansible2.3: VER=2.3.3.0 |
| 52 | + ansible2.4: VER=2.4.6.0 |
| 53 | + ansible2.8: VER=2.8.3 |
| 54 | + ansible2.9: VER=2.9.6 |
| 55 | + ansible2.10: VER=2.10.0 |
| 56 | + distro_centos5: DISTRO=centos5 |
| 57 | + distro_centos6: DISTRO=centos6 |
| 58 | + distro_centos7: DISTRO=centos7 |
| 59 | + distro_debian: DISTRO=debian |
| 60 | + distro_debianpy3: DISTRO=debian-py3 |
| 61 | + distros_centos5: DISTROS=centos5 |
| 62 | + distros_debian: DISTROS=debian |
| 63 | + mode_ansible: MODE=ansible |
| 64 | + mode_debops_common: MODE=debops_common |
| 65 | + mode_mitogen: MODE=mitogen |
| 66 | + strategy_linear: STRATEGY=linear |
24 | 67 |
|
25 | 68 | [testenv:init] |
| 69 | +basepython = python3 |
26 | 70 | commands = |
27 | 71 | coverage erase |
28 | 72 | deps = |
29 | | - coverage |
| 73 | + coverage==4.5.4 |
30 | 74 |
|
31 | 75 | [testenv:report] |
| 76 | +basepython = python3 |
32 | 77 | commands = |
33 | 78 | coverage html |
34 | 79 | echo "coverage report is at file://{toxinidir}/htmlcov/index.html" |
35 | 80 | deps = |
36 | | - coverage |
| 81 | + coverage==4.5.4 |
37 | 82 | whitelist_externals = |
38 | 83 | echo |
39 | 84 |
|
40 | 85 | [testenv:docs] |
41 | | -basepython = python |
| 86 | +basepython = python3 |
42 | 87 | changedir = docs |
43 | 88 | commands = |
44 | 89 | sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html |
0 commit comments