Rename functional to functional-py27 and add functional-py37

Change-Id: Ib45b63991793fa05cddcc23491d6c1348ba1cb86
This commit is contained in:
caoyuan 2019-07-15 16:13:24 +08:00
parent aa955b7fe8
commit 98dca2e8fb
2 changed files with 18 additions and 6 deletions

View File

@ -1,16 +1,16 @@
---
- job:
name: kollacli-tox-functional
name: kollacli-tox-functional-py27
parent: openstack-tox
description: |
Run tox-based functional tests for the OpenStack Kolla-cli project.
Run tox-based py27 functional tests for the OpenStack Kolla-cli project.
Uses tox with the ``functional`` environment.
irrelevant-files:
- ^.*\.rst$
- ^doc/source/.*$
- ^releasenotes/.*$
vars:
tox_envlist: functional
tox_envlist: functional-py27
timeout: 3600
- job:
@ -45,10 +45,10 @@
check:
jobs:
- kollacli-tox-mypy
- kollacli-tox-functional
- kollacli-tox-functional-py27
- kollacli-tox-functional-py36
gate:
jobs:
- kollacli-tox-mypy
- kollacli-tox-functional
- kollacli-tox-functional-py27
- kollacli-tox-functional-py36

14
tox.ini
View File

@ -50,8 +50,20 @@ commands =
bash -c "pushd /tmp/kollaclitest/usr/share/kolla-ansible/git; python setup.py install; popd"
stestr run {posargs} --serial
[testenv:functional-py27]
basepython = python2.7
setenv = {[testenv:functional]setenv}
commands = {[testenv:functional]commands}
whitelist_externals = {[testenv:functional]whitelist_externals}
[testenv:functional-py36]
basepython = py36: python3.6
basepython = python3.6
setenv = {[testenv:functional]setenv}
commands = {[testenv:functional]commands}
whitelist_externals = {[testenv:functional]whitelist_externals}
[testenv:functional-py37]
basepython = python3.7
setenv = {[testenv:functional]setenv}
commands = {[testenv:functional]commands}
whitelist_externals = {[testenv:functional]whitelist_externals}