[tox]

[testenv:py26]
basepython = python2.6

[testenv:py27]
basepython = python2.7

# Oldest sensitive dependencies supported with WAL-E 0.7.
[testenv:0.7-oldest]
basepython = python2.6
deps =
    boto==2.6.0
    gevent==0.13.1
    {[base]deps}

[base]
deps =
    pytest
    pytest-capturelog
    pytest-flakes
    pytest-pep8
    pytest-xdist

[testenv]
deps = {[base]deps}
commands =
    python setup.py develop
    py.test                     \
    --flakes                    \
    --pep8                      \
    --basetemp={envtmpdir}      \
    --confcutdir=..             \
    []

[tox]

[testenv:py26]
basepython = python2.6

[testenv:py27]
basepython = python2.7

# Oldest sensitive dependencies supported with WAL-E 0.7.
[testenv:0.7-oldest]
basepython = python2.6
deps =
    boto==2.6.0
    gevent==0.13.1
    {[base]deps}

[base]
deps =
    pytest
    pytest-capturelog
    pytest-cov
    pytest-flakes
    pytest-pep8
    pytest-xdist

[testenv]
deps = {[base]deps}
commands =
    python setup.py develop
    py.test                     \
    --flakes                    \
    --pep8                      \
    --basetemp={envtmpdir}      \
    --confcutdir=..             \
    []

Install coverage pytest plugin by default
Install coverage pytest plugin by default

Note the plugin is installed, not used all the time -- it slows down
test execution by quite a bit.  Yet, I have found in practice not
having the '--cov' option at hand makes me less likely to use coverage
in simple cases, so just make it installed by default to put it close
at hand.
