Merge "Add k8s tox environment"

This commit is contained in:
Jenkins 2017-04-18 15:19:55 +00:00 committed by Gerrit Code Review
commit f3eccb7fcc
1 changed files with 10 additions and 0 deletions

10
tox.ini
View File

@ -44,3 +44,13 @@ commands = python setup.py build_sphinx
[testenv:releasenotes] [testenv:releasenotes]
commands = commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:k8s]
deps =
{[testenv:ansible]deps}
setenv =
{[testenv:ansible]setenv}
K8S_DIR = {toxinidir}/workloads/ansible/shade/k8s
ANSIBLE_INVENTORY = {env:K8S_DIR}/hosts
ANSIBLE_CONFIG = {env:K8S_DIR}/ansible.cfg
commands = ansible-playbook -e "action=apply {posargs}" {env:K8S_DIR}/site.yml