
This commit adds the initial engine framework for Deckhand. Included is the logic for parsing YAML files as well as validating them and doing forward substitution as specified by the YAML file. This commit also includes unit tests for the framework changes.
43 lines
1.2 KiB
INI
43 lines
1.2 KiB
INI
[tox]
|
|
envlist = py{35,27},pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
whitelist_externals = bash
|
|
find
|
|
rm
|
|
env
|
|
flake8
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
OS_TEST_PATH=./deckhand/tests/unit
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.utf-8
|
|
passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
rm -Rf .testrepository/times.dbm
|
|
|
|
[testenv:py27]
|
|
commands =
|
|
{[testenv]commands}
|
|
ostestr '{posargs}'
|
|
|
|
[testenv:py35]
|
|
commands =
|
|
{[testenv]commands}
|
|
ostestr '{posargs}'
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=etc/deckhand/config-generator.conf
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[flake8]
|
|
# D100-104 deal with docstrings in public functions
|
|
# D205, D400, D401 deal with docstring formatting
|
|
ignore=E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405,D100,D101,D102,D103,D104,D205,D400,D401,I100
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools/xenserver*,releasenotes
|