53 lines
1.3 KiB
INI
53 lines
1.3 KiB
INI
[tox]
|
|
skipdist = True
|
|
envlist = py26,py27,pep8,pylint,bashate
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
# FIXME(harlowja): overriding the hash seed with a constant is a
|
|
# workaround for bug 1348818
|
|
PYTHONHASHSEED=0
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = nosetests {posargs}
|
|
{toxinidir}/tools/verify_yaml
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:pylint]
|
|
commands = pylint --rcfile=pylintrc anvil
|
|
|
|
[testenv:bashate]
|
|
deps = bashate
|
|
whitelist_externals = bash
|
|
commands = bash -c "find {toxinidir} \
|
|
-not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
|
|
-type f \ # only files
|
|
\( \
|
|
-name \*.sh -or \ # all .sh files
|
|
-path \*smithy \ # smithy
|
|
\) \
|
|
-print0 | xargs -0 bashate -v"
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = H102,H302,E501
|
|
builtins = _
|
|
exclude = .venv,.tox,dist,doc,*egg,.git,build
|
|
|
|
[nosetests]
|
|
verbosity = 2
|
|
detailed-errors = 1
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|