Run stx-nova pep8 and functional tests

Pull the StarlingX Nova staging repo and run the pep8 and functional
tests.

Set the stx_nova_repo and stx_nova_branch variables to pull directly
from the source repo to test a PR.

Change-Id: I9027dff079fc82942358a819e9fd016c37f0703e
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
Dean Troyer 2019-04-26 10:40:07 -05:00
parent b5ef8e2716
commit 532b89c323
2 changed files with 71 additions and 0 deletions

View File

@ -1,3 +1,55 @@
- project:
templates:
- noop-jobs
check:
jobs:
# - stx-nova-stein-debug:
# vars:
# stx_nova_repo: https://github.com/gerrykopec/stx-nova.git
# stx_nova_branch: numa_live_migration
- 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: tox
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

View File

@ -0,0 +1,19 @@
- hosts: all
pre_tasks:
- name: Determine if repo directory exists already
stat:
path: "src/stx-nova"
register: stx_nova_exists
- debug:
msg: "Cloning {{ stx_nova_repo }} branch {{ stx_nova_branch }}"
when: stx_nova_exists.stat.isdir is undefined
- 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_nova_exists.stat.isdir is undefined