Adds tox-molecule job

This adds job definition for running Ansible Molecule testing framework
from inside tox.

This would ease use of molecule testing for any projects that
want to use by avoiding the need to duplicate the setup code across
each repository.

It uses tox `molecule` environment.

Change-Id: I8df4df5448a78b9e21f45fac12d534eb84b29d3d
Needed-By: https://review.opendev.org/#/c/663599/
Needed-By: https://review.opendev.org/#/c/651772/
Needed-By: https://review.opendev.org/#/c/663336/
This commit is contained in:
Sorin Sbarnea 2019-06-10 10:05:51 +01:00
parent acbe2849da
commit 1211185f3b
3 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Python Jobs
.. zuul:autojob:: tox-py37 .. zuul:autojob:: tox-py37
.. zuul:autojob:: tox-docs .. zuul:autojob:: tox-docs
.. zuul:autojob:: tox-linters .. zuul:autojob:: tox-linters
.. zuul:autojob:: tox-molecule
.. zuul:autojob:: tox-pep8 .. zuul:autojob:: tox-pep8
.. zuul:autojob:: tox-cover .. zuul:autojob:: tox-cover
.. zuul:autojob:: tox-bashate .. zuul:autojob:: tox-bashate

View File

@ -0,0 +1,3 @@
- hosts: all
roles:
- install-docker

View File

@ -212,6 +212,17 @@
vars: vars:
tox_envlist: linters tox_envlist: linters
- job:
name: tox-molecule
parent: tox
pre-run: playbooks/tox/pre-molecule.yaml
description: |
Runs Ansible molecule testing on a system where docker is available.
Uses tox with the ``molecule`` environment.
vars:
tox_envlist: molecule
- job: - job:
name: tox-pep8 name: tox-pep8
parent: tox parent: tox