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"
file:
dest: '{{ tobiko_src_dir }}'
state: directory
register:
create_tobiko_src_dir

View File

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

View File

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

View File

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

View File

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

View File

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