Add k8s tox environment

This change adds ansible k8s tox environment

Change-Id: Ib8310e134eaa92b6e7f06f7d4515b965d7e4afcd
This commit is contained in:
Victoria Martinez de la Cruz 2017-04-12 20:18:32 +00:00
parent 791fbe78d1
commit 4178a1cddf
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]
commands =
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