Split profile tox env
Creates a new tox env called profile in order for profiling not to be mandatory for each workload run. Change-Id: I699551f1d50776499ad67440bc0a6b71bd8101ef
This commit is contained in:
parent
6a073cfd9c
commit
f426660f75
|
@ -1,4 +1,3 @@
|
|||
[defaults]
|
||||
inventory = ./hosts
|
||||
host_key_checking = False
|
||||
callback_whitelist = profile_tasks
|
||||
|
|
17
tox.ini
17
tox.ini
|
@ -8,17 +8,22 @@ skipsdist = True
|
|||
sitepackages = False
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
LAMPSTACK_DIR = {toxinidir}/ansible/lampstack
|
||||
ANSIBLE_HOST_KEY_CHECKING = False
|
||||
ANSIBLE_SSH_CONTROL_PATH = /tmp/%%h-%%r
|
||||
ANSIBLE_INVENTORY = {env:LAMPSTACK_DIR}/hosts
|
||||
ANSIBLE_CONFIG = {env:LAMPSTACK_DIR}/ansible.cfg
|
||||
deps =
|
||||
setuptools
|
||||
-r{toxinidir}/ansible_requirements.txt
|
||||
|
||||
[testenv:lampstack]
|
||||
setenv =
|
||||
LAMPSTACK_DIR = {toxinidir}/ansible/lampstack
|
||||
ANSIBLE_CONFIG = {env:LAMPSTACK_DIR}/ansible.cfg
|
||||
ANSIBLE_LOCAL_TEMP = {env:LAMPSTACK_DIR}/.ansible/tmp
|
||||
ANSIBLE_REMOTE_TEMP = {env:LAMPSTACK_DIR}/.ansible/tmp
|
||||
ANSIBLE_INVENTORY = {env:LAMPSTACK_DIR}/hosts
|
||||
commands = ansible-playbook -vvvv -e "action=apply {posargs}" {env:LAMPSTACK_DIR}/site.yml
|
||||
{[testenv]setenv}
|
||||
commands = ansible-playbook -vvv -e "action=apply {posargs}" {env:LAMPSTACK_DIR}/site.yml
|
||||
|
||||
[testenv:profile]
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
ANSIBLE_CALLBACK_WHITELIST = profile_tasks
|
||||
commands = ansible-playbook -vvv -e "action=apply {posargs}" {env:LAMPSTACK_DIR}/site.yml
|
||||
|
|
Loading…
Reference in New Issue