Merge "Add cross-repo base job"

This commit is contained in:
Zuul 2017-10-24 14:15:10 +00:00 committed by Gerrit Code Review
commit 2cdefa5946
2 changed files with 40 additions and 1 deletions

View File

@ -64,7 +64,7 @@
Run functional tests for an OpenStack-Ansible project.
Uses tox with the ``functional`` environment by default,
but the environment name can be changed through the use
of the ``scenario`` variable.
of the ``tox_env`` variable.
required-projects:
- name: openstack/ansible-hardening
- name: openstack/openstack-ansible-apt_package_pinning
@ -118,6 +118,9 @@
- job:
name: openstack-ansible-upgrade
parent: openstack-ansible-functional
description: |
Run upgrade tests for an OpenStack-Ansible project.
Uses tox with the ``upgrade`` environment.
vars:
tox_env: upgrade
@ -150,3 +153,16 @@
name: openstack-ansible-functional-centos-7-nv
parent: openstack-ansible-functional-centos-7
voting: false
- job:
name: openstack-ansible-cross-repo-functional
parent: openstack-ansible-functional
description: |
Run functional tests for an OpenStack-Ansible project.
Uses tox with the ``functional`` environment by default,
but the environment name can be changed through the use
of the ``tox_env`` variable. The OpenStack-Ansible repo
to execute the tests from must be specified in the
``osa_test_repo`` variable.
run: zuul.d/playbooks/cross-repo-run
nodeset: ubuntu-xenial

View File

@ -0,0 +1,23 @@
---
# Copyright 2017, Rackspace US, Inc.
#
# 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
tasks:
- name: Run testing script
shell: |
./run_tests.sh {{ tox_env }}
args:
executable: "/bin/bash"
chdir: "{{ ansible_user_dir }}/src/git.openstack.org/{{ osa_test_repo }}"