Update IR plugin
Change-Id: I8a4c483a4ac4b1f8dd1a3ec729ffe5bf6410073e
This commit is contained in:
parent
45202f038e
commit
1f4e11b118
@ -17,6 +17,7 @@
|
||||
- name: "ensure '{{ tobiko_src_dir }}' directory exists"
|
||||
file:
|
||||
dest: '{{ tobiko_src_dir }}'
|
||||
state: directory
|
||||
register:
|
||||
create_tobiko_src_dir
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
config:
|
||||
plugin_type: test
|
||||
entry_point: infrared.yaml
|
||||
entry_point: main.yaml
|
||||
|
||||
|
||||
subparsers:
|
||||
|
6
playbooks/infrared/pre.yaml
Normal file
6
playbooks/infrared/pre.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
- hosts: primary
|
||||
roles:
|
||||
- tobiko-ensure-python3
|
||||
- tobiko-inventory
|
@ -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
|
||||
|
@ -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 -----------------------------------------------------
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user