Add unit jobs in zuul v3
Change-Id: I3d21011beb57e66cce8d18efb9f603f218258ee2
This commit is contained in:
parent
28163a6b31
commit
6ce2fca854
77
.zuul.yaml
77
.zuul.yaml
@ -7,10 +7,6 @@
|
||||
- job:
|
||||
name: puppet-openstack-integration-base
|
||||
parent: puppet-openstack-base
|
||||
pre-run: playbooks/prepare-node-integration.yaml
|
||||
run: playbooks/run-integration-tests.yaml
|
||||
post-run: playbooks/upload-logs.yaml
|
||||
timeout: 5400
|
||||
required-projects:
|
||||
- openstack/openstack
|
||||
- openstack/puppet-aodh
|
||||
@ -53,6 +49,14 @@
|
||||
- openstack/puppet-zaqar
|
||||
- openstack/tempest
|
||||
- openstack/tempest-horizon
|
||||
|
||||
- job:
|
||||
name: puppet-openstack-integration-run-base
|
||||
parent: puppet-openstack-integration-base
|
||||
pre-run: playbooks/prepare-node-integration.yaml
|
||||
run: playbooks/run-integration-tests.yaml
|
||||
post-run: playbooks/upload-logs.yaml
|
||||
timeout: 5400
|
||||
irrelevant-files:
|
||||
- ^.*\.md$
|
||||
- ^metadata.json$
|
||||
@ -64,7 +68,7 @@
|
||||
|
||||
- job:
|
||||
name: puppet-openstack-integration-4
|
||||
parent: puppet-openstack-integration-base
|
||||
parent: puppet-openstack-integration-run-base
|
||||
vars:
|
||||
puppet: 4
|
||||
|
||||
@ -140,7 +144,7 @@
|
||||
|
||||
- job:
|
||||
name: puppet-openstack-integration-5
|
||||
parent: puppet-openstack-integration-base
|
||||
parent: puppet-openstack-integration-run-base
|
||||
voting: false
|
||||
vars:
|
||||
puppet: 5
|
||||
@ -348,6 +352,67 @@
|
||||
vars:
|
||||
use_puppetlabs: true
|
||||
|
||||
- job:
|
||||
name: puppet-openstack-unit-base
|
||||
parent: puppet-openstack-integration-base
|
||||
run: playbooks/run-unit-tests.yaml
|
||||
pre-run: playbooks/prepare-node-unit.yaml
|
||||
timeout: 3600
|
||||
irrelevant-files:
|
||||
- ^.*\.md$
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^etc/.*$
|
||||
- ^metadata.json$
|
||||
- ^releasenotes/.*$
|
||||
- ^test-requirements.txt$
|
||||
|
||||
- job:
|
||||
name: puppet-openstack-unit-3.6-centos-7
|
||||
parent: puppet-openstack-unit-base
|
||||
nodeset: centos-7
|
||||
branches: ^(stable/(newton|ocata)).*$
|
||||
vars:
|
||||
puppet_gem_version: 3.6
|
||||
|
||||
- job:
|
||||
name: puppet-openstack-unit-3.8-centos-7
|
||||
parent: puppet-openstack-unit-base
|
||||
nodeset: centos-7
|
||||
branches: ^(stable/(newton|ocata)).*$
|
||||
vars:
|
||||
puppet_gem_version: 3.8
|
||||
|
||||
- job:
|
||||
name: puppet-openstack-unit-4.8-centos-7
|
||||
parent: puppet-openstack-unit-base
|
||||
nodeset: centos-7
|
||||
vars:
|
||||
puppet_gem_version: 4.8
|
||||
|
||||
- job:
|
||||
name: puppet-openstack-unit-latest-centos-7
|
||||
parent: puppet-openstack-unit-base
|
||||
nodeset: centos-7
|
||||
branches: ^master
|
||||
voting: false
|
||||
vars:
|
||||
puppet_gem_version: latest
|
||||
|
||||
- project-template:
|
||||
name: puppet-openstack-module-unit-jobs
|
||||
check:
|
||||
jobs:
|
||||
- puppet-openstack-unit-3.6-centos-7
|
||||
- puppet-openstack-unit-3.8-centos-7
|
||||
- puppet-openstack-unit-4.8-centos-7
|
||||
- puppet-openstack-unit-latest-centos-7
|
||||
gate:
|
||||
jobs:
|
||||
- puppet-openstack-unit-3.6-centos-7
|
||||
- puppet-openstack-unit-3.8-centos-7
|
||||
- puppet-openstack-unit-4.8-centos-7
|
||||
|
||||
- project-template:
|
||||
name: puppet-openstack-check-jobs
|
||||
check:
|
||||
|
14
playbooks/run-unit-tests.yaml
Normal file
14
playbooks/run-unit-tests.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- shell:
|
||||
cmd: |
|
||||
if [ "{{ puppet_gem_version }}" != "latest" ]; then
|
||||
export PUPPET_GEM_VERSION='~> {{ puppet_gem_version }}.0'
|
||||
fi
|
||||
mkdir .bundled_gems
|
||||
export GEM_HOME=`pwd`/.bundled_gems
|
||||
gem install bundler --no-rdoc --no-ri --verbose
|
||||
$GEM_HOME/bin/bundle install --retry 3
|
||||
$GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation'
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
Loading…
x
Reference in New Issue
Block a user