[tox] envlist = clean, check, py{27,36,37, 38}, report [testenv] basepython = {py27,docs}: {env:TOXPYTHON:python2.7} py36: {env:TOXPYTHON:python3.6} py36: {env:TOXPYTHON:python3.7} py36: {env:TOXPYTHON:python3.8} {clean,check,report}: python3 setenv = PYTHONPATH={toxinidir}/tests PYTHONUNBUFFERED=yes passenv = * deps = -r requirements.txt -r test-requirements.txt pytest-travis-fold usedevelop = false commands = {posargs:py.test --cov --cov-report=term-missing -vv tests/} [testenv:docs] deps = -r{toxinidir}/docs/requirements.txt commands = sphinx-build {posargs:-E} -b doctest docs dist/docs sphinx-build {posargs:-E} -b html docs dist/docs sphinx-build -b linkcheck docs dist/docs [testenv:check] deps = docutils flake8 isort pygments readme-renderer skip_install = true commands = python setup.py check --strict --metadata --restructuredtext flake8 src tests setup.py isort --verbose --check-only --diff --recursive pymaven/ tests/ setup.py [testenv:clean] deps = coverage skip_install = true commands = coverage erase [testenv:report] deps = coverage skip_install = true commands = coverage combine --append coverage report coverage html