[DON'T REVIEW][TEST]Run Nova Unit Test for upstream nova stein

Change-Id: I8101c5be851d44dd3bdd139e5599281fb8b769f7
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
This commit is contained in:
Shuicheng Lin 2020-01-16 06:03:41 +08:00
parent cb83b4f9b0
commit a53a269580
2 changed files with 102 additions and 3 deletions

View File

@ -3,10 +3,85 @@
- noop-jobs
check:
jobs:
- stx-github-debug:
# - stx-github-debug:
# 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/starlingx-staging/tools-contrib.git
stx_remote_branch: master
stx_remote_repo: https://github.com/openstack/nova.git
stx_remote_branch: stable/stein
# - stx-nova-stein-py27:
# vars:
# stx_remote_repo: https://github.com/dtroyer/stx-nova.git
# stx_remote_branch: numa_live_migration
- stx-nova-stein-py36:
vars:
stx_remote_repo: https://github.com/openstack/nova.git
stx_remote_branch: stable/stein
- stx-nova-stein-functional:
vars:
stx_remote_repo: https://github.com/openstack/nova.git
stx_remote_branch: stable/stein
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.2
stx_repo_dest: src/test-repo
tox_extra_args: -c ../../../test-repo/tox.ini
tox_envlist: pep8
pre-run: playbooks/fetch-remote-repo/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.2
stx_repo_dest: src/test-repo
tox_extra_args: -c ../../../test-repo/tox.ini
tox_envlist: py27
pre-run: playbooks/fetch-remote-repo/pre.yaml
- job:
name: stx-nova-stein-py36
parent: nova-tox-functional-py36
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.2
stx_repo_dest: src/test-repo
tox_extra_args: -c ../../../test-repo/tox.ini
tox_envlist: py36
pre-run: playbooks/fetch-remote-repo/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.2
stx_repo_dest: src/test-repo
tox_extra_args: -c ../../../test-repo/tox.ini
tox_envlist: functional
tox_install_siblings: true
pre-run: playbooks/fetch-remote-repo/pre.yaml
- job:
name: stx-github-debug

24
tox.ini
View File

@ -10,6 +10,7 @@ whitelist_externals =
rm
env
ls
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
@ -24,3 +25,26 @@ 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]
basepython = python2.7
commands =
bash -c "echo placeholder env: py27"
[testenv:py36]
basepython = python3.6
commands =
bash -c "echo placeholder env: py36"
[testenv:py37]
basepython = python3.7
commands =
bash -c "echo placeholder env: py37"
[testenv:functional]
commands =
bash -c "echo placeholder env: functional"