Merge "Add windmill-tox-molecule"

This commit is contained in:
Zuul 2018-08-23 20:40:14 +00:00 committed by Gerrit Code Review
commit 8a7aea4cdb
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