Add ubuntu-focal install job
Change-Id: Ic5e4f41f142d978d5e85b27ea324805bef307983
This commit is contained in:
parent
e1ad05c781
commit
8087d7caa1
|
@ -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
|
|
@ -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:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
|
@ -39,6 +17,7 @@
|
||||||
- rally-tox-functional-py38
|
- rally-tox-functional-py38
|
||||||
- rally-tox-self
|
- rally-tox-self
|
||||||
- rally-install-ubuntu-bionic
|
- rally-install-ubuntu-bionic
|
||||||
|
- rally-install-ubuntu-focal
|
||||||
- rally-install-centos-7
|
- rally-install-centos-7
|
||||||
- rally-install-centos-8
|
- rally-install-centos-8
|
||||||
- rally-docker-build
|
- rally-docker-build
|
||||||
|
@ -53,6 +32,7 @@
|
||||||
- rally-tox-functional
|
- rally-tox-functional
|
||||||
- rally-tox-self
|
- rally-tox-self
|
||||||
- rally-install-ubuntu-bionic
|
- rally-install-ubuntu-bionic
|
||||||
|
- rally-install-ubuntu-focal
|
||||||
- rally-install-centos-7
|
- rally-install-centos-7
|
||||||
- rally-install-centos-8
|
- rally-install-centos-8
|
||||||
post:
|
post:
|
||||||
|
|
|
@ -1,29 +1,12 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
name: Prepare host to install Rally
|
name: Prepare host to install Rally
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check whether apt is available
|
- name: Set Apache URL
|
||||||
shell:
|
set_fact:
|
||||||
cmd: "apt-get --version"
|
os_distro: '{{ ansible_distribution }} {{ ansible_distribution_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: Install required packages (Centos-7)
|
- name: Install required packages (Centos-7)
|
||||||
when: yum_installed.rc == 0
|
when: os_distro == "CentOS 7"
|
||||||
shell:
|
shell:
|
||||||
cmd: |
|
cmd: |
|
||||||
sudo yum remove -y python-crypto || true
|
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 https://centos7.iuscommunity.org/ius-release.rpm
|
||||||
sudo yum install -y python36u python36u-devel
|
sudo yum install -y python36u python36u-devel
|
||||||
|
|
||||||
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
|
- name: Install required packages (Ubuntu-Bionic)
|
||||||
sudo python3 /tmp/get-pip.py
|
when: os_distro == "Ubuntu 18.04"
|
||||||
|
|
||||||
- name: Install required packages (Ubuntu)
|
|
||||||
when: apt_get_installed.rc == 0
|
|
||||||
shell:
|
shell:
|
||||||
chdir: '{{ zuul.project.src_dir }}'
|
chdir: '{{ zuul.project.src_dir }}'
|
||||||
cmd: |
|
cmd: |
|
||||||
# NOTE(pabelanger): We run apt-get update to ensure we dont have a stale
|
# NOTE(pabelanger): We run apt-get update to ensure we dont have a stale
|
||||||
# package cache in the gate.
|
# package cache in the gate.
|
||||||
sudo apt-get update
|
sudo apt update
|
||||||
sudo apt-get install --yes python3.6-dev
|
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
|
- name: Install bindep
|
||||||
shell:
|
shell:
|
||||||
|
|
Loading…
Reference in New Issue