diff options
author | Ilya Etingof <etingof@gmail.com> | 2020-03-14 15:44:58 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2020-03-14 15:45:32 +0100 |
commit | 0421ec974415354d834d86e55b522d17b8c1005c (patch) | |
tree | f70e7ab0083ea7d1c1d1b4089314b52e97486879 | |
parent | 4078c15c718b3668245ecdb7899f8f4e0c501fb2 (diff) | |
download | pyasn1-git-0421ec974415354d834d86e55b522d17b8c1005c.tar.gz |
Run unittests from tox across many Pythons
-rw-r--r-- | tox.ini | 41 |
1 files changed, 34 insertions, 7 deletions
@@ -1,23 +1,50 @@ [tox] minversion = 3.5.0 -envlist = unittest, docs, bandit, build +envlist = + {py27, py35, py36, py37, py38}-{unittest}, + cover, docs, bandit, build +isolated_build = true +skip_missing_interpreters = true [testenv] -basepython = python3 usedevelop = True setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning -install_command = pip install {opts} {packages} +deps = pip >= 19.3.1 +install_command = + pip install {opts} {packages} [testenv:unittest] deps = - discover - -r{toxinidir}/devel-requirements.txt - -r{toxinidir}/requirements.txt -commands = discover -s tests + discover + -r{toxinidir}/devel-requirements.txt + -r{toxinidir}/requirements.txt +commands = + discover -s tests + +[testenv:py27-unittest] +deps = {[testenv:unittest]deps} +commands = {[testenv:unittest]commands} + +[testenv:py35-unittest] +deps = {[testenv:unittest]deps} +commands = {[testenv:unittest]commands} + +[testenv:py36-unittest] +deps = {[testenv:unittest]deps} +commands = {[testenv:unittest]commands} + +[testenv:py37-unittest] +deps = {[testenv:unittest]deps} +commands = {[testenv:unittest]commands} + +[testenv:py38-unittest] +deps = {[testenv:unittest]deps} +commands = {[testenv:unittest]commands} [testenv:cover] +basepython = python3.7 setenv = {[testenv]setenv} PYTHON=coverage run --parallel-mode |