Add Ubuntu Bionic Infrared plugin job

Change-Id: Idfe053b9f3d708ea9fdbe864f320e72d01d21a81
This commit is contained in:
Federico Ressi 2020-04-08 15:25:21 +02:00
parent 608ceab04b
commit f1b479c990
7 changed files with 63 additions and 12 deletions

View File

@ -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
tasks:
- name: "copy /etc/resolv.conf"
@ -46,12 +66,6 @@
- ''
- '.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"
template:
src: 'ansible_hosts.j2'
@ -61,6 +75,14 @@
- hosts: all
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 }}'"
authorized_key:
user: vagrant

View File

@ -17,12 +17,6 @@
path: '{{ test_collect_dir }}'
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"
command: >
'{{ tox_executable }}' -e infrared --

View File

@ -0,0 +1,3 @@
---
ansible_python_interpreter: /usr/libexec/platform-python

View File

@ -0,0 +1,3 @@
---
ansible_python_interpreter: /usr/bin/python3

View 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

View File

@ -26,3 +26,11 @@
voting: false
description: |
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

View File

@ -20,6 +20,7 @@
- tobiko-devstack-faults-ubuntu-bionic
- tobiko-tox-infrared-centos-7
- tobiko-tox-infrared-centos-8
- tobiko-tox-infrared-ubuntu-bionic
- tobiko-tripleo-functional
- tobiko-tripleo-faults