anvil/tox.ini
Joshua Harlow 69d84aaac7 The ubuntu venv job is now working, so we don't need duplication
Depends-On: Ieaecac84aa192e4a55e5f769340a24127e2f7452

Change-Id: I9f1fec1c8b626ec64edd070e9511d952124e87ae
2015-08-04 21:46:04 +00:00

58 lines
1.5 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}
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:py27]
setenv = VIRTUAL_ENV={envdir}
SKIP_BOOTSTRAP=yes
PYTHONHASHSEED=0
commands = nosetests {posargs}
{toxinidir}/tools/verify_yaml
[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,H405,H236,F812,H104,E265
builtins = _
exclude = .venv,.tox,dist,doc,*egg,.git,build
[nosetests]
verbosity = 2
detailed-errors = 1
[testenv:docs]
commands = python setup.py build_sphinx