0e2ad319b5
This will make sure that anvil prepare works and that anvils functionalities continues to work at least at a basic level under ubuntu (which is what the gate runs). Change-Id: I1bdd387a6a75b37cecf5e8c63e4d86a34e3cd8ff
62 lines
1.7 KiB
INI
62 lines
1.7 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
|
|
{toxinidir}/smithy -a prepare \
|
|
-p {toxinidir}/conf/personas/in-a-box/venv-all.yaml \
|
|
-o {toxinidir}/conf/origins/kilo-venv-2015.1.0.yaml \
|
|
--tee-file {toxinidir}/tee.out -v -j1
|
|
|
|
[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
|