Run stx-nova tests
Pull the StarlingX Nova staging repo and run some basic tests Change-Id: Ic68e4d88f2e063ab63fb3f8429dc5430e966109e Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
parent
e6679baf51
commit
31942173cf
49
.zuul.yaml
49
.zuul.yaml
|
@ -1,3 +1,52 @@
|
|||
- project:
|
||||
templates:
|
||||
- noop-jobs
|
||||
check:
|
||||
jobs:
|
||||
# - stx-nova-stein-debug
|
||||
- stx-nova-stein-pep8:
|
||||
vars:
|
||||
stx_nova_repo: https://github.com/gerrykopec/stx-nova.git
|
||||
stx_nova_branch: numa_live_migration
|
||||
# - stx-nova-stein-functional:
|
||||
# vars:
|
||||
# stx_nova_repo: https://github.com/gerrykopec/stx-nova.git
|
||||
# stx_nova_branch: numa_live_migration
|
||||
experimental:
|
||||
jobs:
|
||||
- stx-nova-stein-functional
|
||||
|
||||
- job:
|
||||
name: stx-nova-stein-pep8
|
||||
parent: openstack-tox-pep8
|
||||
required-projects:
|
||||
- name: openstack/nova
|
||||
vars:
|
||||
stx_nova_repo: https://github.com/starlingx-staging/stx-nova.git
|
||||
stx_nova_branch: stx/stein.1
|
||||
tox_extra_args: -c ../../../stx-nova/tox.ini
|
||||
tox_envlist: pep8
|
||||
pre-run: playbooks/fetch-stx-nova/pre.yaml
|
||||
|
||||
- job:
|
||||
name: stx-nova-stein-functional
|
||||
parent: nova-tox-functional
|
||||
required-projects:
|
||||
- name: openstack/placement
|
||||
- name: openstack/nova
|
||||
vars:
|
||||
stx_nova_repo: https://github.com/starlingx-staging/stx-nova.git
|
||||
stx_nova_branch: stx/stein.1
|
||||
tox_extra_args: -c ../../../stx-nova/tox.ini
|
||||
tox_envlist: functional
|
||||
tox_install_siblings: true
|
||||
pre-run: playbooks/fetch-stx-nova/pre.yaml
|
||||
|
||||
- job:
|
||||
name: stx-nova-stein-debug
|
||||
parent: tox
|
||||
vars:
|
||||
stx_nova_repo: https://github.com/starlingx-staging/stx-nova.git
|
||||
stx_nova_branch: stx/stein.1
|
||||
tox_envlist: debug
|
||||
pre-run: playbooks/fetch-stx-nova/pre.yaml
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
- hosts: all
|
||||
pre_tasks:
|
||||
- name: Determine if repo directory exists already
|
||||
stat:
|
||||
path: "src/stx-nova"
|
||||
register: stx_exists
|
||||
|
||||
- name: Clone stx-nova repo
|
||||
git:
|
||||
# repo: https://github.com/starlingx-staging/stx-nova.git
|
||||
# version: stx/stein.1
|
||||
repo: "{{ stx_nova_repo }}"
|
||||
version: "{{ stx_nova_branch }}"
|
||||
dest: "src/stx-nova"
|
||||
when: stx_exists.stat.isdir is undefined
|
|
@ -0,0 +1,35 @@
|
|||
# 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.
|
||||
|
||||
import setuptools
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
name='tis-repo',
|
||||
description='StarlingX tis-repo',
|
||||
classifiers=[
|
||||
'Environment :: OpenStack',
|
||||
'Intended Audience :: Information Technology',
|
||||
'Intended Audience :: System Administrators',
|
||||
'License :: Apache 2.0',
|
||||
'Operating System :: POSIX :: Linux',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 2.6',
|
||||
],
|
||||
# include_package_data=True,
|
||||
# setup_requires=['pbr>=0.5'],
|
||||
# pbr=True,
|
||||
# packages=setuptools.find_packages()
|
||||
)
|
|
@ -0,0 +1,26 @@
|
|||
[tox]
|
||||
minversion = 3.0
|
||||
|
||||
[testenv]
|
||||
basepython = python3
|
||||
#usedevelop = True
|
||||
whitelist_externals =
|
||||
bash
|
||||
find
|
||||
rm
|
||||
env
|
||||
ls
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
LANGUAGE=en_US
|
||||
LC_ALL=en_US.utf-8
|
||||
OS_STDOUT_CAPTURE=1
|
||||
OS_STDERR_CAPTURE=1
|
||||
OS_TEST_TIMEOUT=160
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
[testenv:debug]
|
||||
envdir = {toxworkdir}/shared
|
||||
commands =
|
||||
bash -c "pwd; cd ../../../stx-nova; git branch"
|
||||
ls -l ../../../stx-nova
|
Loading…
Reference in New Issue