release-tools/tox.ini

57 lines
1.6 KiB
INI

[tox]
minversion = 1.6
envlist = py27,pep8,bashate
skipsdist = True
[testenv]
passenv=EMAIL
usedevelop = True
install_command = pip install -U {opts} {packages}
--allow-external lazr.authentication
--allow-insecure lazr.authentication
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8
[testenv:bashate]
whitelist_externals = bash
# find does:
# prune all 'dot' dirs
# only files
# skip editors, readme, etc
commands = bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \
-type f \
-not -name \*~ \
-not -name \*.md \
-name \*.sh \
-print0 | xargs -0 bashate -v"
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:cover]
#commands = python setup.py testr --coverage --testr-args='{posargs}'
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# E501 skipped because some of the code files include templates
# that end up quite wide
show-source = True
ignore = E123,E125,E501
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,release-tag-*,presentations
[testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files.
deps = bindep
commands = bindep test