Run ensure-tox on all platforms

Change-Id: Id25bd4a4dc1d29e9ac0dd6a6931b06ce94467f69
This commit is contained in:
James E. Blair 2020-02-11 11:30:04 -08:00
parent 3cbce518ad
commit 6f491cba6c
2 changed files with 124 additions and 4 deletions

View File

@ -14,11 +14,15 @@
- hosts: all
name: Test ensure-tox when tox_executable is already set and tox is installed
tasks:
- name: Install tox inside a virtualenv
pip:
name: tox
virtualenv: "{{ ansible_user_dir }}/tox-venv"
- name: Run ensure-tox with tox not installed
include_role:
name: ensure-tox
vars:
tox_executable: "python3 -m tox"
tox_executable: "{{ ansible_user_dir }}/tox-venv/bin/tox"
- name: Verify tox_executable is not set by ensure-tox
assert:
that:
@ -46,6 +50,7 @@
- name: Remove tox package
shell: pip uninstall tox || pip3 uninstall tox
become: true
ignore_errors: true
- name: Verify tox is not installed
command: "tox --version"
register: result

View File

@ -12,7 +12,100 @@
description: Test the ensure-tox role
files:
- roles/ensure-tox/.*
- test-playbooks/ensure-tox.yaml
run: test-playbooks/ensure-tox.yaml
tags: all-platforms
- job:
name: zuul-jobs-test-ensure-tox-centos-7
description: Test the ensure-tox role on centos-7
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: centos-7
label: centos-7
- job:
name: zuul-jobs-test-ensure-tox-centos-8
description: Test the ensure-tox role on centos-8
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: centos-8
label: centos-8
- job:
name: zuul-jobs-test-ensure-tox-debian-stretch
description: Test the ensure-tox role on debian-stretch
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: debian-stretch
label: debian-stretch
- job:
name: zuul-jobs-test-ensure-tox-fedora-30
description: Test the ensure-tox role on fedora-30
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: fedora-30
label: fedora-30
- job:
name: zuul-jobs-test-ensure-tox-gentoo-17-0-systemd
description: Test the ensure-tox role on gentoo-17-0-systemd
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: gentoo-17-0-systemd
label: gentoo-17-0-systemd
- job:
name: zuul-jobs-test-ensure-tox-opensuse-15
description: Test the ensure-tox role on opensuse-15
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: opensuse-15
label: opensuse-15
- job:
name: zuul-jobs-test-ensure-tox-opensuse-tumbleweed-nv
voting: false
description: Test the ensure-tox role on opensuse-tumbleweed
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: opensuse-tumbleweed
label: opensuse-tumbleweed
- job:
name: zuul-jobs-test-ensure-tox-ubuntu-bionic
description: Test the ensure-tox role on ubuntu-bionic
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-bionic
label: ubuntu-bionic
- job:
name: zuul-jobs-test-ensure-tox-ubuntu-xenial
description: Test the ensure-tox role on ubuntu-xenial
parent: zuul-jobs-test-ensure-tox
tags: auto-generated
nodeset:
nodes:
- name: ubuntu-xenial
label: ubuntu-xenial
- job:
name: zuul-jobs-test-tox-siblings
@ -71,13 +164,35 @@
- project:
check:
jobs: &id001
jobs:
- zuul-jobs-test-ensure-sphinx
- zuul-jobs-test-ensure-tox
- zuul-jobs-test-ensure-tox-centos-7
- zuul-jobs-test-ensure-tox-centos-8
- zuul-jobs-test-ensure-tox-debian-stretch
- zuul-jobs-test-ensure-tox-fedora-30
- zuul-jobs-test-ensure-tox-gentoo-17-0-systemd
- zuul-jobs-test-ensure-tox-opensuse-15
- zuul-jobs-test-ensure-tox-opensuse-tumbleweed-nv
- zuul-jobs-test-ensure-tox-ubuntu-bionic
- zuul-jobs-test-ensure-tox-ubuntu-xenial
- zuul-jobs-test-tox-siblings
- zuul-jobs-test-fetch-tox-output
- zuul-jobs-test-fetch-tox-output-synchronize
- zuul-jobs-test-fetch-subunit-output
- zuul-jobs-test-fetch-subunit-output-synchronize
gate:
jobs: *id001
jobs:
- zuul-jobs-test-ensure-sphinx
- zuul-jobs-test-ensure-tox-centos-7
- zuul-jobs-test-ensure-tox-centos-8
- zuul-jobs-test-ensure-tox-debian-stretch
- zuul-jobs-test-ensure-tox-fedora-30
- zuul-jobs-test-ensure-tox-gentoo-17-0-systemd
- zuul-jobs-test-ensure-tox-opensuse-15
- zuul-jobs-test-ensure-tox-ubuntu-bionic
- zuul-jobs-test-ensure-tox-ubuntu-xenial
- zuul-jobs-test-tox-siblings
- zuul-jobs-test-fetch-tox-output
- zuul-jobs-test-fetch-tox-output-synchronize
- zuul-jobs-test-fetch-subunit-output
- zuul-jobs-test-fetch-subunit-output-synchronize