[tox]
envlist = begin,py{27,36},end

[testenv:begin]
commands = coverage erase

[testenv]
deps =
    pytest
    pytest-cov
    pytest-pep8
    pytest-mccabe
    pydocstyle
commands =
    pip install -e .
    pytest .
    pydocstyle

[testenv:py27]
basepython = python2.7

[testenv:py36]
basepython = python3.6

[testenv:end]
commands =
    coverage report --omit='.tox/*'
    coverage html --omit='.tox/*' -d tests/reports/coverage-html
    coverage xml --omit='.tox/*' -o tests/reports/coverage.xml
