Add windmill-tox-molecule

This is a shared job we'll be using for testing windmill related ansible
roles.

Change-Id: If6fdf1a94cf3a73a46a75f8ec75f389157a43ebf
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-08-19 00:27:21 -04:00
parent 153e4ce713
commit b0cf668d71
4 changed files with 46 additions and 0 deletions

15
.zuul.d/shared-jobs.yaml Normal file
View File

@ -0,0 +1,15 @@
# TODO(pabelanger): Remove once https://review.openstack.org/593150 is merged.
- job:
name: windmill-tox-with-sudo
parent: tox
run: tests/playbooks/windmill-tox-with-sudo/run.yaml
protected: true
- job:
name: windmill-tox-molecule
parent: windmill-tox-with-sudo
pre-run: tests/playbooks/molecule/pre.yaml
post-run: tests/playbooks/molecule/post.yaml
vars:
tox_envlist: molecule
tox_install_siblings: false

View File

@ -0,0 +1,18 @@
- hosts: all
tasks:
- name: Ensure ara-report directory exists
file:
path: "{{ zuul_output_dir }}/logs/logs/ara-report"
state: directory
- name: Copy ARA database to ara-report directory
shell: "cp ~/.ara/ansible.sqlite {{ zuul_output_dir }}/logs/logs/ara-report"
# TODO: Migrate to fetch-zuul-logs when
# https://review.openstack.org/#/c/583346/ is merged.
- name: Collect log output
synchronize:
dest: "{{ zuul.executor.log_root }}/"
mode: pull
src: "{{ zuul_output_dir }}/logs/"
verify_host: true

View File

@ -0,0 +1,10 @@
- hosts: all
tasks:
# TODO(pabelanger): Remove once this lands in our base job in
# project-config.
- name: Execute ensure-output-dirs role
include_role:
name: ensure-output-dirs
- name: Reset SSH connection for new group
meta: reset_connection

View File

@ -0,0 +1,3 @@
- hosts: all
roles:
- tox