Update IR plugin

Change-Id: I8a4c483a4ac4b1f8dd1a3ec729ffe5bf6410073e
This commit is contained in:
Federico Ressi 2020-04-28 16:56:12 +02:00
parent 45202f038e
commit 1f4e11b118
6 changed files with 13 additions and 6 deletions

View File

@ -17,6 +17,7 @@
- name: "ensure '{{ tobiko_src_dir }}' directory exists" - name: "ensure '{{ tobiko_src_dir }}' directory exists"
file: file:
dest: '{{ tobiko_src_dir }}' dest: '{{ tobiko_src_dir }}'
state: directory
register: register:
create_tobiko_src_dir create_tobiko_src_dir

View File

@ -2,7 +2,7 @@
config: config:
plugin_type: test plugin_type: test
entry_point: infrared.yaml entry_point: main.yaml
subparsers: subparsers:

View File

@ -0,0 +1,6 @@
---
- hosts: primary
roles:
- tobiko-ensure-python3
- tobiko-inventory

View File

@ -2,7 +2,5 @@
- hosts: primary - hosts: primary
roles: roles:
- role: tobiko-ensure-python3 - tox
- role: tobiko-inventory - tobiko-check-collected-files
- role: tox
- role: tobiko-check-collected-files

View File

@ -3,7 +3,7 @@
# --- Tobiko workflow stages # --- Tobiko workflow stages
test_stage: all test_stage: all
test_no_become: false test_no_become: "{{ ansible_os_family in ['Darwin'] }}"
test_become: '{{ not (test_no_become | bool) }}' test_become: '{{ not (test_no_become | bool) }}'
# --- Test deploy options ----------------------------------------------------- # --- Test deploy options -----------------------------------------------------

View File

@ -7,6 +7,7 @@
timeout: 1800 timeout: 1800
description: | description: |
Run test cases using tobiko infrared plugin Run test cases using tobiko infrared plugin
pre-run: playbooks/infrared/pre.yaml
run: playbooks/infrared/run.yaml run: playbooks/infrared/run.yaml
vars: vars:
test_collect_dir: '{{ zuul_output_dir }}/logs' test_collect_dir: '{{ zuul_output_dir }}/logs'
@ -16,6 +17,7 @@
tox_environ: tox_environ:
ANSIBLE_INVENTORY: '{{ test_inventory_file }}' ANSIBLE_INVENTORY: '{{ test_inventory_file }}'
zuul_output_dir: '{{ ansible_user_dir }}/zuul-output' zuul_output_dir: '{{ ansible_user_dir }}/zuul-output'
zuul_work_dir: "{{ zuul.project.src_dir }}"
- job: - job: