zuul: Use zuul templates for unit tests
This patch set uses zuul templates for python35 and python36 because: 1) python35 template is maintained by project-config; don't need to maintain separately in SY 2) python36 is now what SY will be building off in the Dockerfile so it is better to also test this actively in CICD Change-Id: I98230b51db69f1054d11428f48bd09dc2547f8b6
This commit is contained in:
parent
38a12fc4fc
commit
d3b282468f
34
.zuul.yaml
34
.zuul.yaml
@ -13,6 +13,8 @@
|
||||
- project:
|
||||
templates:
|
||||
- docs-on-readthedocs
|
||||
- openstack-python35-jobs
|
||||
- openstack-python36-jobs
|
||||
vars:
|
||||
rtd_webhook_id: '38576'
|
||||
check:
|
||||
@ -21,7 +23,6 @@
|
||||
- airship-shipyard-linter
|
||||
- airship-shipyard-ubuntu:
|
||||
voting: false
|
||||
- airship-shipyard-tox-py35
|
||||
- airship-shipyard-image
|
||||
gate:
|
||||
jobs:
|
||||
@ -33,7 +34,6 @@
|
||||
# - ^.*\.rst$
|
||||
# - ^doc/.*$
|
||||
# - ^releasenotes/.*$
|
||||
- airship-shipyard-tox-py35
|
||||
- airship-shipyard-image
|
||||
post:
|
||||
jobs:
|
||||
@ -75,36 +75,6 @@
|
||||
parent: airship-shipyard-base
|
||||
run: tools/gate/playbooks/airship-shipyard-check.yaml
|
||||
|
||||
|
||||
- job:
|
||||
name: airship-shipyard-tox-base
|
||||
description: |
|
||||
Base job for running airship-shipyard tests. Runs tests
|
||||
against Docker image generated from source code.
|
||||
roles:
|
||||
- zuul: openstack/openstack-helm-infra
|
||||
timeout: 3600
|
||||
pre-run:
|
||||
- tools/gate/playbooks/osh-infra-upgrade-host.yaml
|
||||
- tools/gate/playbooks/osh-infra-deploy-docker.yaml
|
||||
run: tools/gate/playbooks/run-tests.yaml
|
||||
required-projects:
|
||||
- openstack/openstack-helm-infra
|
||||
irrelevant-files:
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^releasenotes/.*$
|
||||
|
||||
- job:
|
||||
name: airship-shipyard-tox-py35
|
||||
description: |
|
||||
Run tox-based tests for the Airship Shipyard project under
|
||||
cPython version 3.5.
|
||||
parent: airship-shipyard-tox-base
|
||||
nodeset: airship-shipyard-single-node
|
||||
vars:
|
||||
tox_envlist: py35
|
||||
|
||||
- job:
|
||||
name: airship-shipyard-image-base
|
||||
description: |
|
||||
|
@ -1,20 +0,0 @@
|
||||
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- hosts: all
|
||||
gather_facts: False
|
||||
roles:
|
||||
- run-tests
|
||||
tags:
|
||||
- run-tests
|
@ -1,15 +0,0 @@
|
||||
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- include: tox-tests.yaml
|
@ -1,20 +0,0 @@
|
||||
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Run Tox Tests
|
||||
shell: |
|
||||
set -xe;
|
||||
tox -e {{ tox_envlist }}
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
Loading…
x
Reference in New Issue
Block a user