Merge "Tweak the role-addition tox job"

This commit is contained in:
Zuul 2019-07-11 19:34:18 +00:00 committed by Gerrit Code Review
commit bd6980b634
2 changed files with 8 additions and 2 deletions

View File

@ -114,5 +114,10 @@ deps=
{[testenv:linters]deps}
commands =
bash -c "ansible-playbook -i localhost, role-addition.yml -e role_name=skeleton_test"
bash -c "pushd {toxinidir}/tripleo_ansible/roles/skeleton_test; molecule test --all; popd"
bash -c "if (podman ps 2> /dev/null || docker ps 2> /dev/null); then \
cd {toxinidir}/tripleo_ansible/roles/skeleton_test; \
molecule test --all; \
else \
echo -e '\n\nNo molecule tests have been executed\nSee https://docs.openstack.org/tripleo-ansible/latest/contributing.html#local-testing-of-new-roles\n\n'; \
fi"
{[testenv:linters]commands}

View File

@ -80,9 +80,10 @@
files:
- ^_skeleton_role_/.*
- ^role-addition.yml
- ^tox.ini
name: tripleo-ansible-centos-7-role-addition
nodeset: centos-7
parent: openstack-tox
parent: tox-molecule
timeout: 1800
vars:
tox_envlist: role-addition