Files
mkdocs/tox.ini
Waylan Limberg 74953f2995 Force tox to use Py26 for Flake8 env.
WHen Flake8 is run in Python3, it will fail on "undefined" objects which
are onlu used in if statements that run on Python2. As a workaround,
force tox to use Python2 when running Flake8. This can just be removed
in the future if/when Python2 support is dropped.
2015-11-17 20:30:09 -05:00

25 lines
844 B
INI

[tox]
envlist =
py{26,27,33,34,35}-{unittests,integration,min-req},
flake8
[testenv]
passenv = LANG
deps=
py{26,27,33,34,35,py,py3}-{unittests,integration}: -rrequirements/project.txt
py{26,27,33,34,35,py,py3}-min-req: -rrequirements/project-min.txt
py{26,27,33,34,35,py,py3}-{unittests,min-req}: -rrequirements/test.txt
commands=
py{26,27,33,34,35,py,py3}-{unittests,min-req}: {envbindir}/nosetests --with-coverage --cover-package mkdocs mkdocs
py{26,27,33,34,35,py,py3}-integration: {envpython} -m mkdocs.tests.integration --output={envtmpdir}/builds
[testenv:flake8]
basepython = python2.7
deps=-rrequirements/test.txt
commands={envbindir}/flake8 mkdocs --max-line-length=119 --exclude=mkdocs/compat.py
[testenv:markdown-lint]
whitelist_externals = mdl
passenv = *
commands=mdl README.md CONTRIBUTING.md docs/