Add Ubuntu Bionic Infrared plugin job
Change-Id: Idfe053b9f3d708ea9fdbe864f320e72d01d21a81
This commit is contained in:
parent
608ceab04b
commit
f1b479c990
@ -1,5 +1,25 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: "show platform id variables"
|
||||||
|
debug:
|
||||||
|
msg:
|
||||||
|
ansible_architecture: '{{ ansible_architecture }}'
|
||||||
|
ansible_distribution: '{{ ansible_distribution }}'
|
||||||
|
ansible_distribution_major_version: '{{ ansible_distribution_major_version }}'
|
||||||
|
ansible_os_family: '{{ ansible_os_family }}'
|
||||||
|
|
||||||
|
- name: "include platform variables"
|
||||||
|
include_vars: "{{ item }}"
|
||||||
|
with_first_found:
|
||||||
|
- "provision-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
|
||||||
|
- "provision-{{ ansible_distribution }}.{{ ansible_architecture }}.yaml"
|
||||||
|
- "provision-{{ ansible_distribution }}.yaml"
|
||||||
|
- "provision-{{ ansible_os_family }}.yaml"
|
||||||
|
register: include_platform_vars
|
||||||
|
|
||||||
|
|
||||||
- hosts: primary
|
- hosts: primary
|
||||||
tasks:
|
tasks:
|
||||||
- name: "copy /etc/resolv.conf"
|
- name: "copy /etc/resolv.conf"
|
||||||
@ -46,12 +66,6 @@
|
|||||||
- ''
|
- ''
|
||||||
- '.pub'
|
- '.pub'
|
||||||
|
|
||||||
- name: "set ansible_python_interpreter fact"
|
|
||||||
set_fact:
|
|
||||||
ansible_python_interpreter: >
|
|
||||||
{{ ansible_python_interpreter |
|
|
||||||
default("/usr/libexec/platform-python") }}
|
|
||||||
|
|
||||||
- name: "make Ansible inventory file with vagrant nodes"
|
- name: "make Ansible inventory file with vagrant nodes"
|
||||||
template:
|
template:
|
||||||
src: 'ansible_hosts.j2'
|
src: 'ansible_hosts.j2'
|
||||||
@ -61,6 +75,14 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
- name: "update APT database"
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: 3600
|
||||||
|
become: yes
|
||||||
|
when:
|
||||||
|
- ansible_os_family == 'Debian'
|
||||||
|
|
||||||
- name: "set authorized SSH key taken from '{{ ssh_key_file }}'"
|
- name: "set authorized SSH key taken from '{{ ssh_key_file }}'"
|
||||||
authorized_key:
|
authorized_key:
|
||||||
user: vagrant
|
user: vagrant
|
||||||
|
@ -17,12 +17,6 @@
|
|||||||
path: '{{ test_collect_dir }}'
|
path: '{{ test_collect_dir }}'
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: "set ansible_python_interpreter fact"
|
|
||||||
set_fact:
|
|
||||||
ansible_python_interpreter: >
|
|
||||||
{{ ansible_python_interpreter |
|
|
||||||
default("/usr/libexec/platform-python") }}
|
|
||||||
|
|
||||||
- name: "run Tox InfraRed plugin"
|
- name: "run Tox InfraRed plugin"
|
||||||
command: >
|
command: >
|
||||||
'{{ tox_executable }}' -e infrared --
|
'{{ tox_executable }}' -e infrared --
|
||||||
|
3
roles/tests/vars/provision-CentOS-8.yaml
Normal file
3
roles/tests/vars/provision-CentOS-8.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
ansible_python_interpreter: /usr/libexec/platform-python
|
3
roles/tests/vars/provision-Ubuntu.yaml
Normal file
3
roles/tests/vars/provision-Ubuntu.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
ansible_python_interpreter: /usr/bin/python3
|
20
roles/tobiko-ensure-python3/vars/Ubuntu.yaml
Normal file
20
roles/tobiko-ensure-python3/vars/Ubuntu.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
python_packages:
|
||||||
|
python:
|
||||||
|
- aria2
|
||||||
|
- gcc
|
||||||
|
- libbz2-dev
|
||||||
|
- libreadline-dev
|
||||||
|
- libssl-dev
|
||||||
|
- libsqlite3-dev
|
||||||
|
- make
|
||||||
|
- python
|
||||||
|
- python-pip
|
||||||
|
- zlib1g-dev
|
||||||
|
python3:
|
||||||
|
- python3
|
||||||
|
- python3-pip
|
||||||
|
python3.6:
|
||||||
|
- python3.6
|
||||||
|
- python3.6-pip
|
@ -26,3 +26,11 @@
|
|||||||
voting: false
|
voting: false
|
||||||
description: |
|
description: |
|
||||||
Run py36 test cases using tobiko infrared plugin on CentOS 8
|
Run py36 test cases using tobiko infrared plugin on CentOS 8
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: tobiko-tox-infrared-ubuntu-bionic
|
||||||
|
parent: tobiko-tox-infrared
|
||||||
|
nodeset: ubuntu-bionic
|
||||||
|
voting: false
|
||||||
|
description: |
|
||||||
|
Run py36 test cases using tobiko infrared plugin on Ubuntu Bionic
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
- tobiko-devstack-faults-ubuntu-bionic
|
- tobiko-devstack-faults-ubuntu-bionic
|
||||||
- tobiko-tox-infrared-centos-7
|
- tobiko-tox-infrared-centos-7
|
||||||
- tobiko-tox-infrared-centos-8
|
- tobiko-tox-infrared-centos-8
|
||||||
|
- tobiko-tox-infrared-ubuntu-bionic
|
||||||
- tobiko-tripleo-functional
|
- tobiko-tripleo-functional
|
||||||
- tobiko-tripleo-faults
|
- tobiko-tripleo-faults
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user