anvil/tox.ini
Joshua Harlow f64b3c3a6c Add a yaml verification to tox testing
Ensure that all yaml is valid when running testing
to ensure that no yaml files are invalid or broken
in anvil.

Change-Id: I292029b9403499fb3b83ed259abb2867f136ad25
2014-04-17 14:58:10 -07:00

38 lines
800 B
INI

[tox]
skipdist = True
envlist = py26,py27,pep8,pylint
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests {posargs}
{toxinidir}/tools/verify_yaml
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = flake8 {posargs}
[testenv:pylint]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = pylint --rcfile=pylintrc anvil
[testenv:venv]
commands = {posargs}
[flake8]
ignore = H102,H302,E501
builtins = _
exclude = .venv,.tox,dist,doc,*egg,.git,build
[nosetests]
verbosity = 2
detailed-errors = 1