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:
Felipe Monteiro 2018-10-23 17:57:44 -04:00
parent 38a12fc4fc
commit d3b282468f
4 changed files with 2 additions and 87 deletions

View File

@ -13,6 +13,8 @@
- project: - project:
templates: templates:
- docs-on-readthedocs - docs-on-readthedocs
- openstack-python35-jobs
- openstack-python36-jobs
vars: vars:
rtd_webhook_id: '38576' rtd_webhook_id: '38576'
check: check:
@ -21,7 +23,6 @@
- airship-shipyard-linter - airship-shipyard-linter
- airship-shipyard-ubuntu: - airship-shipyard-ubuntu:
voting: false voting: false
- airship-shipyard-tox-py35
- airship-shipyard-image - airship-shipyard-image
gate: gate:
jobs: jobs:
@ -33,7 +34,6 @@
# - ^.*\.rst$ # - ^.*\.rst$
# - ^doc/.*$ # - ^doc/.*$
# - ^releasenotes/.*$ # - ^releasenotes/.*$
- airship-shipyard-tox-py35
- airship-shipyard-image - airship-shipyard-image
post: post:
jobs: jobs:
@ -75,36 +75,6 @@
parent: airship-shipyard-base parent: airship-shipyard-base
run: tools/gate/playbooks/airship-shipyard-check.yaml 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: - job:
name: airship-shipyard-image-base name: airship-shipyard-image-base
description: | description: |

View File

@ -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

View File

@ -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

View File

@ -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 }}"