Run stx-nova pep8, py27 and functional tests
Pull the StarlingX Nova staging repo and run the pep8, py27 and functional tests. Change-Id: I9027dff079fc82942358a819e9fd016c37f0703e Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
parent
cb83b4f9b0
commit
cde5704b4e
57
.zuul.yaml
57
.zuul.yaml
|
@ -7,6 +7,63 @@
|
|||
vars:
|
||||
stx_remote_repo: https://github.com/starlingx-staging/tools-contrib.git
|
||||
stx_remote_branch: master
|
||||
# - stx-nova-stein-pep8:
|
||||
# vars:
|
||||
# stx_remote_repo: https://github.com/gerrykopec/stx-nova.git
|
||||
# stx_remote_branch: numa_live_migration
|
||||
- stx-nova-stein-py27:
|
||||
vars:
|
||||
stx_remote_repo: https://github.com/gerrykopec/stx-nova.git
|
||||
stx_remote_branch: numa_live_migration
|
||||
# - stx-nova-stein-functional:
|
||||
# vars:
|
||||
# stx_remote_repo: https://github.com/gerrykopec/stx-nova.git
|
||||
# stx_remote_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_remote_repo: https://github.com/starlingx-staging/stx-nova.git
|
||||
stx_remote_branch: stx/stein.1
|
||||
stx_repo_dest: src/test-repo
|
||||
tox_extra_args: -c ../../../stx-nova/tox.ini
|
||||
tox_envlist: pep8
|
||||
pre-run: playbooks/fetch-stx-nova/pre.yaml
|
||||
|
||||
- job:
|
||||
name: stx-nova-stein-py27
|
||||
parent: nova-tox-functional
|
||||
required-projects:
|
||||
- name: openstack/nova
|
||||
- name: openstack/placement
|
||||
vars:
|
||||
stx_remote_repo: https://github.com/starlingx-staging/stx-nova.git
|
||||
stx_remote_branch: stx/stein.1
|
||||
stx_repo_dest: src/test-repo
|
||||
tox_extra_args: -c ../../../stx-nova/tox.ini
|
||||
tox_envlist: py27
|
||||
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_remote_repo: https://github.com/starlingx-staging/stx-nova.git
|
||||
stx_remote_branch: stx/stein.1
|
||||
stx_repo_dest: src/test-repo
|
||||
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-github-debug
|
||||
|
|
|
@ -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
|
12
tox.ini
12
tox.ini
|
@ -24,3 +24,15 @@ envdir = {toxworkdir}/shared
|
|||
commands =
|
||||
bash -c "pwd; cd ../../../test-repo; git branch"
|
||||
ls -l ../../../test-repo
|
||||
|
||||
[testenv:pep8]
|
||||
commands =
|
||||
bash -c "echo placeholder env: pep8"
|
||||
|
||||
[testenv:py27]
|
||||
commands =
|
||||
bash -c "echo placeholder env: py27"
|
||||
|
||||
[testenv:functional]
|
||||
commands =
|
||||
bash -c "echo placeholder env: functional"
|
||||
|
|
Loading…
Reference in New Issue