
- create plugin roles folder with tasks required only by the plugin - remove unused roles from tobiko roles folder - link tobiko roles one by one to plugin roles folder Change-Id: If74642f04b451cffc61c55560cd5004db14475ae
42 lines
958 B
YAML
42 lines
958 B
YAML
---
|
|
|
|
- hosts: primary
|
|
vars:
|
|
test_collect_dir: '{{ test_dir }}/test_results'
|
|
|
|
roles:
|
|
- tobiko-ensure-tox
|
|
|
|
tasks:
|
|
- name: "remove '{{ test_collect_dir }}' dir"
|
|
file:
|
|
path: '{{ test_collect_dir }}'
|
|
state: absent
|
|
|
|
- name: "run Tox InfraRed plugin"
|
|
command:
|
|
cmd: >
|
|
'{{ tox_executable }}' -e infrared --
|
|
--host secondary
|
|
--collect-dir '{{ test_collect_dir }}'
|
|
chdir: '{{ test_dir }}'
|
|
environment:
|
|
UPPER_CONSTRAINTS_FILE: '{{ remote_constraints_file }}'
|
|
ignore_errors: yes
|
|
register: run_tox
|
|
|
|
- name: "show Tox InfraRed plugin output"
|
|
debug: var=run_tox.stdout_lines
|
|
|
|
- name: "show Tox InfraRed plugin errors"
|
|
debug: var=run_tox.stderr_lines
|
|
when: run_tox is failed
|
|
failed_when: yes
|
|
|
|
|
|
- hosts: primary
|
|
vars:
|
|
test_collect_dir: '{{ test_dir }}/test_results'
|
|
roles:
|
|
- tobiko-check-collected-files
|