Use Litmus for libraries jobs

Change-Id: I9a989ccf4c271cb519aa90445931628cc9664b7e
This commit is contained in:
Tobias Urdin 2020-09-16 21:47:09 +02:00
parent f723bfa349
commit 7d392fc095
3 changed files with 47 additions and 6 deletions

View File

@ -0,0 +1,15 @@
- hosts: all
tasks:
- shell:
cmd: |
set -e
set -x
trap "{{ ansible_user_dir }}/workspace/puppet-openstack-integration/copy_logs.sh" EXIT
if [ "{{ puppet_gem_version }}" != "latest" ]; then
export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}'
fi
./run_litmus_tests.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
become: yes
environment: '{{ zuul | zuul_legacy_vars }}'

View File

@ -30,8 +30,8 @@
- puppet-openstack-libraries-puppet-unit-6.14-centos-8
- puppet-openstack-libraries-puppet-unit-6.14-ubuntu-bionic
- puppet-openstack-libraries-puppet-unit-latest-ubuntu-bionic
- puppet-openstack-libraries-puppet-beaker-rspec-centos-8
- puppet-openstack-libraries-puppet-beaker-rspec-ubuntu-bionic
- puppet-openstack-libraries-litmus-centos-8
- puppet-openstack-libraries-litmus-ubuntu-bionic
gate:
jobs:
- puppet-openstack-libraries-puppet-lint-ubuntu-bionic
@ -39,7 +39,7 @@
- puppet-openstack-libraries-puppet-syntax-6-ubuntu-bionic
- puppet-openstack-libraries-puppet-unit-6.14-centos-8
- puppet-openstack-libraries-puppet-unit-6.14-ubuntu-bionic
- puppet-openstack-libraries-puppet-beaker-rspec-centos-8
- puppet-openstack-libraries-litmus-centos-8
# integration jobs
- project-template:

View File

@ -5,12 +5,12 @@
abstract: true
pre-run: playbooks/prepare-node-litmus.yaml
post-run: playbooks/upload-logs.yaml
run: playbooks/run-litmus-tests.yaml
timeout: 5400
irrelevant-files:
- ^.*\.md$
- ^.*\.rst$
- ^doc/.*$
- ^etc/.*$
- ^releasenotes/.*$
- ^spec/unit/.*$
- ^spec/classes/.*$
@ -24,8 +24,20 @@
- ^setup.py$
- job:
name: puppet-openstack-litmus-centos-8
name: puppet-openstack-litmus-module-base
parent: puppet-openstack-litmus-run-base
abstract: true
run: playbooks/run-litmus-tests.yaml
- job:
name: puppet-openstack-litmus-libraries-base
parent: puppet-openstack-litmus-run-base
abstract: true
run: playbooks/run-libraries-litmus-tests.yaml
- job:
name: puppet-openstack-litmus-centos-8
parent: puppet-openstack-litmus-module-base
nodeset: centos-8
vars:
puppet_gem_version: 6.16
@ -33,13 +45,27 @@
- job:
name: puppet-openstack-litmus-ubuntu-bionic
parent: puppet-openstack-litmus-run-base
parent: puppet-openstack-litmus-module-base
nodeset: ubuntu-bionic
voting: false
vars:
puppet_gem_version: latest
ceph: nautilus
- job:
name: puppet-openstack-libraries-litmus-centos-8
parent: puppet-openstack-litmus-libraries-base
vars:
puppet_gem_version: 6.18.0
- job:
name: puppet-openstack-libraries-litmus-ubuntu-bionic
parent: puppet-openstack-litmus-libraries-base
voting: false
nodeset: ubuntu-bionic
vars:
puppet_gem_version: latest
- project-template:
name: puppet-openstack-litmus-jobs
check: