d0d0e8be36
Switch docker repo to use docker-ce package See: https://www.docker.com/blog/changes-dockerproject-org-apt-yum-repositories/ Change format of parameters for plugin cri configuration to be able to use version = 2 See: https://github.com/containerd/cri/blob/master/docs/config.md Use python3.6 instead of python3.5 in tests Change-Id: Ie56c0a7a344ea78c9f348fbf0e77617399815a7e
69 lines
1.5 KiB
INI
69 lines
1.5 KiB
INI
[tox]
|
|
envlist = pep8,py35,py36,bandit,docs
|
|
|
|
[testenv]
|
|
basepython=python3
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:py35]
|
|
setenv =
|
|
PYTHONWARNING=all
|
|
deps = -r{toxinidir}/requirements-frozen.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
pytest {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 promenade
|
|
|
|
[testenv:docs]
|
|
whitelist_externals = rm
|
|
deps =
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -rf doc/build
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:fmt]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
yapf -ir {toxinidir}/promenade {toxinidir}/tests {toxinidir}/tools/image_tags.py
|
|
|
|
[testenv:freeze]
|
|
deps = -r{toxinidir}/requirements-direct.txt
|
|
recreate = True
|
|
whitelist_externals = sh
|
|
grep
|
|
commands=
|
|
sh -c "pip freeze | grep -vE '^(promenade)|(pkg-resources)' > {toxinidir}/requirements-frozen.txt"
|
|
|
|
[testenv:gate-lint]
|
|
deps =
|
|
jsonschema==2.6.0
|
|
whitelist_externals = sh
|
|
commands =
|
|
{toxinidir}/tools/lint_gate.sh
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
yapf -rd {toxinidir}/promenade {toxinidir}/tests {toxinidir}/tools/image_tags.py
|
|
flake8 {toxinidir}/promenade
|
|
bandit -r promenade
|