From 31d50a530eda11e5a3b512599d0a816a2256b9ee Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 7 Dec 2018 18:43:59 -0500 Subject: [PATCH] Add testing for package installs This extends our converage to include distro package testing. Change-Id: I2ecebf7ba86caf2bc3c10c656cb574d06198da40 Signed-off-by: Paul Belanger --- .zuul.yaml | 21 +++++++++++++++++++++ tests/playbooks/pre.yaml | 9 +++++++++ 2 files changed, 30 insertions(+) diff --git a/.zuul.yaml b/.zuul.yaml index 6bca3d3..677b987 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -39,6 +39,23 @@ parent: ansible-role-virtualenv-src nodeset: ubuntu-bionic +# Testing for virtualenv_install_method: package +- job: + name: ansible-role-virtualenv-pkg + parent: ansible-role-virtualenv-base + vars: + virtualenv_install_method: package + +- job: + name: ansible-role-virtualenv-pkg-fedora-latest + parent: ansible-role-virtualenv-pkg + nodeset: fedora-latest + +- job: + name: ansible-role-virtualenv-pkg-ubuntu-bionic + parent: ansible-role-virtualenv-pkg + nodeset: ubuntu-bionic + - project: templates: - windmill-jobs-fedora-latest @@ -47,6 +64,8 @@ jobs: - ansible-role-virtualenv-fedora-latest - ansible-role-virtualenv-ubuntu-bionic + - ansible-role-virtualenv-pkg-fedora-latest + - ansible-role-virtualenv-pkg-ubuntu-bionic - ansible-role-virtualenv-src-fedora-latest - ansible-role-virtualenv-src-ubuntu-bionic - tox-linters @@ -54,6 +73,8 @@ jobs: - ansible-role-virtualenv-fedora-latest - ansible-role-virtualenv-ubuntu-bionic + - ansible-role-virtualenv-pkg-fedora-latest + - ansible-role-virtualenv-pkg-ubuntu-bionic - ansible-role-virtualenv-src-fedora-latest - ansible-role-virtualenv-src-ubuntu-bionic - tox-linters diff --git a/tests/playbooks/pre.yaml b/tests/playbooks/pre.yaml index 0dce620..d8081bc 100644 --- a/tests/playbooks/pre.yaml +++ b/tests/playbooks/pre.yaml @@ -26,3 +26,12 @@ dest: /etc/pip.conf regexp: ^extra-index-url state: absent + + # NOTE(pabelanger): This is to help keep out fedora package testing happy. + - name: Remove exclude from dnf.conf + become: true + lineinfile: + dest: /etc/dnf/dnf.conf + regexp: ^exclude + state: absent + when: ansible_os_family == 'RedHat'