|
1 | 1 | [tox] |
2 | | -envlist = py26,py27,py33,py34,py35,py36,py37,pypy |
| 2 | +envlist = cp{26,27,33,34,35},pp{2,3},cp26-win |
| 3 | +minversion=2.7 |
3 | 4 |
|
4 | 5 | [testenv] |
5 | | -deps = -rtest_requirements.txt |
6 | | -commands = python -m unittest discover -v |
7 | | -passenv = LANG LOCALE_ARCHIVE |
| 6 | +recreate = True |
| 7 | +# We use python -m to avoid issues on windows when upgradin pip |
| 8 | +# We use -q to avoid issues with unicode errors in the progress bar |
| 9 | +install_command = python -m pip install -q {packages} |
| 10 | +passenv = |
| 11 | + SHOW_TEST_ENV |
| 12 | + PYTHONUNBUFFERED |
| 13 | + LANG |
| 14 | + LOCALE_ARCHIVE |
| 15 | +basepython = |
| 16 | + cp26: {env:TOXPY26:python2.6} |
| 17 | + cp26-win: {env:TOXPY26:python2.6} |
| 18 | + cp27: {env:TOXPY27:python2.7} |
| 19 | + cp33: {env:TOXPY33:python3.3} |
| 20 | + cp34: {env:TOXPY34:python3.4} |
| 21 | + cp35: {env:TOXPY35:python3.5} |
| 22 | + cp36: {env:TOXPY36:python3.6} |
| 23 | + cp37: {env:TOXPY37:python3.7} |
| 24 | + pp2: {env:TOXPYPY:pypy} |
| 25 | + pp3: {env:TOXPYPY3:pypy3} |
8 | 26 |
|
9 | | -[testenv:py26] |
10 | | -commands = python -m unittest2.__main__ discover -v |
| 27 | +commands = |
| 28 | + pip install -q -rtest_requirements.txt |
| 29 | + pip --version |
| 30 | + coverage run --branch -m unittest discover -v -t . haas |
| 31 | + python -m haas haas |
| 32 | + |
| 33 | +[testenv:cp26-win] |
| 34 | +install_command = python -m pip --trusted-host pypi.org --trusted-host pypi.python.org install {packages} |
| 35 | +commands = |
| 36 | + pip install -q -rtest_requirements.txt |
| 37 | + pip --version |
| 38 | + coverage run --branch -m unittest2.__main__ discover -v -t . haas |
| 39 | + python -m haas.__main__ haas |
| 40 | + |
| 41 | +[testenv:cp26] |
| 42 | +# Python 2.6 needs some handholding to run the entry points using the |
| 43 | +# `-m` option. |
| 44 | +install_command = python -m pip.__main__ install -q {packages} |
| 45 | +commands = |
| 46 | + pip install -q -rtest_requirements.txt |
| 47 | + pip --version |
| 48 | + coverage run --branch -m unittest2.__main__ discover -v -t . haas |
| 49 | + python -m haas.__main__ haas |
| 50 | + |
| 51 | +[testenv:cp33] |
| 52 | +# The tox environment for cp33 needs a specific set of base |
| 53 | +# dependencies for wheel, pip and setuptools |
| 54 | +deps = -rcp33-tox-requirements.txt |
0 commit comments