b0e8e0f478
- Setting up a runtime environment - Add to Zuul 'check' and 'gate' pipeline - Validate concepts: 1) List a few unit tests successfully 2) Execute a few simple tests successfully (pass or fail) 3) Generate docsbuild successfully - Each UC will have their own test suite and test cases and will be handled seperately - add compute-utility deployment into the gate - add logging collector of primary - add false / positive test cases - add unit-test and feature-test gates Change-Id: I55a0dcf440e9694b041d5fb8eb75bd6f4adb8913
57 lines
1.1 KiB
INI
57 lines
1.1 KiB
INI
[tox]
|
|
minversion = 3.4
|
|
envlist = dev,pep8,py36,bandit,docs,list-tests
|
|
skipsdist = true
|
|
|
|
[testenv:dev]
|
|
useddevelop = True
|
|
basepython = python3
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
|
|
deps =
|
|
freeze-req: -r{toxinidir}/requirements-frozen.txt
|
|
list-tests: -r {toxinidir}/requirements-frozen.txt
|
|
|
|
envdir=
|
|
{toxinidir}/.tox/{envname}
|
|
|
|
commands_pre =
|
|
find . -type f -name "*.pyc"
|
|
list-tests: stestr init
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:py36]
|
|
setenv =
|
|
PYTHONWARNING=all
|
|
deps = -r{toxinidir}/requirements-frozen.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
pytest {posargs}
|
|
|
|
[testenv:bandit]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
bandit -r {toxinidir}
|
|
|
|
[testenv:docs]
|
|
whitelist_externals = rm
|
|
deps =
|
|
-r{toxinidir}/docs/requirements.txt
|
|
commands =
|
|
rm -rf docs/build
|
|
sphinx-build -W -b html docs/source docs/build/html
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
yapf -rd {toxinidir} {toxinidir}/tests
|
|
flake8 {toxinidir}
|
|
bandit -r {toxinidir}
|