38b58a6d0e
Use the same configuration for CentOS-7 and RHEL-7 Change-Id: Ie18bcfcab53e4d5c82d19a002ae4dded15a5e6cd
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
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: "show ansible distro variables"
|
|
debug:
|
|
msg:
|
|
ansible_distribution: '{{ ansible_distribution }}'
|
|
ansible_distribution_major_version: '{{ ansible_distribution_major_version }}'
|
|
ansible_distribution_version: '{{ ansible_distribution_version }}'
|
|
ansible_os_family: '{{ ansible_os_family }}'
|
|
|
|
- name: "include platform variables"
|
|
include_vars: "{{ item }}"
|
|
ignore_errors: yes
|
|
with_first_found:
|
|
- "test-{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
|
|
- "test-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
|
|
- "test-{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yaml"
|
|
- "test-{{ ansible_distribution }}.yaml"
|
|
- "test-{{ ansible_os_family }}.yaml"
|
|
register: include_platform_vars
|
|
|
|
- name: "run Tox InfraRed plugin"
|
|
command:
|
|
cmd: >
|
|
'{{ tox_executable }}' -e infrared --
|
|
--host secondary
|
|
--collect-dir '{{ test_collect_dir }}'
|
|
chdir: '{{ test_dir }}'
|
|
environment:
|
|
IR_DEPS: "{{ ir_deps | default('') }}"
|
|
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
|