|
1 | 1 | [tox] |
2 | | -envlist = {py27,py33,py34,py35,py36,pypy}-{base,optional} |
| 2 | +envlist = {py27,py33,py34,py35,py36,pypy}-{base,six19,optional} |
3 | 3 |
|
4 | 4 | [testenv] |
5 | 5 | deps = |
6 | | - flake8<3.0 |
7 | | - pytest |
8 | | - pytest-expect>=1.1,<2.0 |
9 | | - mock |
10 | | - base: six |
11 | | - base: webencodings |
12 | 6 | optional: -r{toxinidir}/requirements-optional.txt |
| 7 | + -r{toxinidir}/requirements-test.txt |
13 | 8 | doc: Sphinx |
14 | 9 |
|
| 10 | +passenv = |
| 11 | + PYTEST_COMMAND |
| 12 | + COVERAGE_RUN_OPTIONS |
15 | 13 | commands = |
16 | | - {envbindir}/py.test {posargs} |
| 14 | + six19: pip installsix==1.9 |
| 15 | + {env:PYTEST_COMMAND:{envbindir}/py.test} {posargs} |
17 | 16 | flake8 {toxinidir} |
18 | 17 |
|
19 | 18 | [testenv:doc] |
20 | 19 | changedir = doc |
21 | 20 | commands = sphinx-build -b html . _build |
| 21 | + |
| 22 | +[flake8] |
| 23 | +exclude = ./.tox |