[tox]
envlist = style,packaging,py{27,34,35,36,py}-pip{8,9}

[testenv]
deps =
    pip8: pip~=8.0.0
    pip9: pip~=9.0
    -rrequirements-test.txt
commands =
    pip --version
    py.test -ra -v --cov-config={toxinidir}/.coveragerc --strict \
        --doctest-modules {posargs:--cov=prequ tests/ prequ/}

# Change install command to allow pip up/downgrades on Windows
install_command = python -m pip install {opts} {packages}

[testenv:style]
skip_install = True
basepython = python3.4
deps = -rrequirements-stylecheck.txt
commands = flake8 {posargs}

[testenv:packaging]
skip_install = True
basepython = python3.4
deps = readme_renderer
commands =
    python setup.py check --metadata --strict
    python setup.py check --restructuredtext --strict

[tox]
envlist = style,packaging,py{27,34,35,36,py}-pip{8,9}

[testenv]
deps =
    pip8: pip~=8.0.0
    pip9: pip~=9.0
    -rrequirements-test.txt
setenv =
    pypy: COV_ARGS=
commands =
    pip --version
    py.test -ra -v --strict --doctest-modules \
        --cov-config={toxinidir}/.coveragerc {env:COV_ARGS:--cov=prequ} \
        {posargs:tests/ prequ/}

# Change install command to allow pip up/downgrades on Windows
install_command = python -m pip install {opts} {packages}

[testenv:style]
skip_install = True
basepython = python3.4
deps = -rrequirements-stylecheck.txt
commands = flake8 {posargs}

[testenv:packaging]
skip_install = True
basepython = python3.4
deps = readme_renderer
commands =
    python setup.py check --metadata --strict
    python setup.py check --restructuredtext --strict

Disable coverage collection for PyPy
Tox: Disable coverage collection for PyPy

Do not collect test coverage data for PyPy builds anymore, since that
makes the PyPy tests run very slowly.
