Browse Source

Update IR plugin

Change-Id: I8a4c483a4ac4b1f8dd1a3ec729ffe5bf6410073e
changes/00/724000/5
Federico Ressi 1 year ago
parent
commit
1f4e11b118
  1. 1
      infrared_plugin/main.yaml
  2. 2
      infrared_plugin/plugin.spec
  3. 6
      playbooks/infrared/pre.yaml
  4. 6
      playbooks/infrared/run.yaml
  5. 2
      roles/tobiko-common/defaults/main.yaml
  6. 2
      zuul.d/infrared.yaml

1
infrared_plugin/infrared.yaml → infrared_plugin/main.yaml

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

2
infrared_plugin/plugin.spec

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

6
playbooks/infrared/pre.yaml

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

6
playbooks/infrared/run.yaml

@ -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

2
roles/tobiko-common/defaults/main.yaml

@ -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 -----------------------------------------------------

2
zuul.d/infrared.yaml

@ -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…
Cancel
Save