Add ubuntu-focal install job

Change-Id: Ic5e4f41f142d978d5e85b27ea324805bef307983
This commit is contained in:
Andrey Kurilin 2020-07-02 13:45:51 +03:00
parent e1ad05c781
commit 8087d7caa1
3 changed files with 55 additions and 50 deletions

27
.zuul.d/install-jobs.yaml Normal file
View File

@ -0,0 +1,27 @@
- job:
name: rally-install-base
parent: base
pre-run: tests/ci/playbooks/rally-install-pre.yaml
run: tests/ci/playbooks/rally-install-run.yaml
post-run: tests/ci/playbooks/fetch-html-and-json-reports.yaml
timeout: 1800
- job:
name: rally-install-ubuntu-bionic
parent: rally-install-base
nodeset: ubuntu-bionic
- job:
name: rally-install-ubuntu-focal
parent: rally-install-base
nodeset: ubuntu-focal
- job:
name: rally-install-centos-7
parent: rally-install-base
nodeset: centos-7
- job:
name: rally-install-centos-8
parent: rally-install-base
nodeset: centos-8

View File

@ -1,25 +1,3 @@
- job:
name: rally-install-base
parent: base
pre-run: tests/ci/playbooks/rally-install-pre.yaml
run: tests/ci/playbooks/rally-install-run.yaml
post-run: tests/ci/playbooks/fetch-html-and-json-reports.yaml
timeout: 1800
- job:
name: rally-install-ubuntu-bionic
parent: rally-install-base
nodeset: ubuntu-bionic
- job:
name: rally-install-centos-7
parent: rally-install-base
nodeset: centos-7
- job:
name: rally-install-centos-8
parent: rally-install-base
nodeset: centos-8
- project:
templates:
@ -39,6 +17,7 @@
- rally-tox-functional-py38
- rally-tox-self
- rally-install-ubuntu-bionic
- rally-install-ubuntu-focal
- rally-install-centos-7
- rally-install-centos-8
- rally-docker-build
@ -53,6 +32,7 @@
- rally-tox-functional
- rally-tox-self
- rally-install-ubuntu-bionic
- rally-install-ubuntu-focal
- rally-install-centos-7
- rally-install-centos-8
post:

View File

@ -1,29 +1,12 @@
- hosts: all
name: Prepare host to install Rally
tasks:
- name: Check whether apt is available
shell:
cmd: "apt-get --version"
executable: /bin/sh
register: apt_get_installed
ignore_errors: True
- name: Check whether dnf is available
shell:
cmd: "dnf --version"
executable: /bin/sh
register: dnf_installed
ignore_errors: True
- name: Check whether yum is available
shell:
cmd: "yum --version"
executable: /bin/sh
register: yum_installed
ignore_errors: True
- name: Set Apache URL
set_fact:
os_distro: '{{ ansible_distribution }} {{ ansible_distribution_version }}'
- name: Install required packages (Centos-7)
when: yum_installed.rc == 0
when: os_distro == "CentOS 7"
shell:
cmd: |
sudo yum remove -y python-crypto || true
@ -35,18 +18,33 @@
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm
sudo yum install -y python36u python36u-devel
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
sudo python3 /tmp/get-pip.py
- name: Install required packages (Ubuntu)
when: apt_get_installed.rc == 0
- name: Install required packages (Ubuntu-Bionic)
when: os_distro == "Ubuntu 18.04"
shell:
chdir: '{{ zuul.project.src_dir }}'
cmd: |
# NOTE(pabelanger): We run apt-get update to ensure we dont have a stale
# package cache in the gate.
sudo apt-get update
sudo apt-get install --yes python3.6-dev
sudo apt update
sudo apt install --yes python3.6-dev
- name: Install required packages (Ubuntu-Focal)
when: os_distro == "Ubuntu 20.04"
shell:
chdir: '{{ zuul.project.src_dir }}'
cmd: |
# NOTE(pabelanger): We run apt-get update to ensure we dont have a stale
# package cache in the gate.
sudo apt update
sudo apt install --yes python3.8-dev
- name: Install pip3 if needed
when: os_distro == "CentOS 7" or os_distro == "Ubuntu 18.04" or os_distro == "Ubuntu 20.04"
shell:
chdir: '{{ zuul.project.src_dir }}'
cmd: |
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
sudo python3 /tmp/get-pip.py
- name: Install bindep
shell: