Enable py39 tox gate/test for app plugins
Add support for tox testing under Debian Bullseye by enabling a python3.9 gate and tox target for exercsing unit tests. Story: 2009101 Task: 43187 Signed-off-by: Charles Short <charles.short@windriver.com> Change-Id: Id00936d92962e50221ebfe714307e96ecbc4e043
This commit is contained in:
parent
26b8abf742
commit
b6dab01113
20
.zuul.yaml
20
.zuul.yaml
@ -2,14 +2,34 @@
|
|||||||
- project:
|
- project:
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
|
- k8app-portieris-tox-py39
|
||||||
- openstack-tox-linters
|
- openstack-tox-linters
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
|
- k8app-portieris-tox-py39
|
||||||
- openstack-tox-linters
|
- openstack-tox-linters
|
||||||
post:
|
post:
|
||||||
jobs:
|
jobs:
|
||||||
- stx-portieris-armada-app-upload-git-mirror
|
- stx-portieris-armada-app-upload-git-mirror
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: k8app-portieris-tox-py39
|
||||||
|
parent: tox-py39
|
||||||
|
description: |
|
||||||
|
Run py39 test for portieris
|
||||||
|
nodeset: debian-bullseye
|
||||||
|
required-projects:
|
||||||
|
- starlingx/config
|
||||||
|
- starlingx/fault
|
||||||
|
- starlingx/update
|
||||||
|
- starlingx/utilities
|
||||||
|
files:
|
||||||
|
- python-k8app-portieris/*
|
||||||
|
vars:
|
||||||
|
tox_envlist: py39
|
||||||
|
python_version: 3.9
|
||||||
|
tox_extra_args: -c python-k8sapp-portieris/k8sapp_portieris/tox.ini
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: stx-portieris-armada-app-upload-git-mirror
|
name: stx-portieris-armada-app-upload-git-mirror
|
||||||
parent: upload-git-mirror
|
parent: upload-git-mirror
|
||||||
|
10
bindep.txt
Normal file
10
bindep.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# This is a cross-platform list tracking distribution packages needed for install and tests;
|
||||||
|
# see https://docs.openstack.org/infra/bindep/ for additional information.
|
||||||
|
|
||||||
|
libffi-dev [platform:dpkg]
|
||||||
|
libldap2-dev [platform:dpkg]
|
||||||
|
libxml2-dev [platform:dpkg]
|
||||||
|
libxslt1-dev [platform:dpkg]
|
||||||
|
libsasl2-dev [platform:dpkg]
|
||||||
|
libffi-devel [platform:rpm]
|
||||||
|
python3-all-dev [platform:dpkg]
|
@ -6,11 +6,13 @@ flake8<3.8.0
|
|||||||
pycodestyle<2.6.0 # MIT License
|
pycodestyle<2.6.0 # MIT License
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
discover
|
discover
|
||||||
|
mock>=2.0.0 # BSD
|
||||||
passlib>=1.7.0
|
passlib>=1.7.0
|
||||||
psycopg2-binary
|
psycopg2-binary
|
||||||
python-subunit>=0.0.18
|
python-subunit>=0.0.18
|
||||||
requests-mock>=0.6.0 # Apache-2.0
|
requests-mock>=0.6.0 # Apache-2.0
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
|
stestr>=1.0.0 # Apache-2.0
|
||||||
testrepository>=0.0.18
|
testrepository>=0.0.18
|
||||||
testtools!=1.2.0,>=0.9.36
|
testtools!=1.2.0,>=0.9.36
|
||||||
ipaddr
|
ipaddr
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = flake8,py27,py36,pylint,bandit
|
envlist = flake8,py27,py36,py39,pylint,bandit
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
# skipsdist = True
|
# skipsdist = True
|
||||||
#,pip-missing-reqs
|
#,pip-missing-reqs
|
||||||
@ -14,15 +14,14 @@ distshare={toxworkdir}/.tox/distshare
|
|||||||
# enabling usedevelop results in py27 develop-inst:
|
# enabling usedevelop results in py27 develop-inst:
|
||||||
# Exception: Versioning for this project requires either an sdist tarball,
|
# Exception: Versioning for this project requires either an sdist tarball,
|
||||||
# or access to an upstream git repository.
|
# or access to an upstream git repository.
|
||||||
# Note. site-packages is true and rpm-python must be yum installed on your dev machine.
|
sitepackages = False
|
||||||
sitepackages = True
|
|
||||||
|
|
||||||
# tox is silly... these need to be separated by a newline....
|
# tox is silly... these need to be separated by a newline....
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
find
|
find
|
||||||
|
|
||||||
install_command = pip install \
|
install_command = pip install \
|
||||||
-v -v -v \
|
-v -v -v --use-deprecated legacy-resolver \
|
||||||
-c{toxinidir}/upper-constraints.txt \
|
-c{toxinidir}/upper-constraints.txt \
|
||||||
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \
|
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \
|
||||||
{opts} {packages}
|
{opts} {packages}
|
||||||
@ -72,6 +71,18 @@ commands =
|
|||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
stestr slowest
|
stestr slowest
|
||||||
|
|
||||||
|
[testenv:py39]
|
||||||
|
basepython = python3.9
|
||||||
|
install_command = pip install \
|
||||||
|
-v -v -v --use-deprecated legacy-resolver \
|
||||||
|
-c{toxinidir}/upper-constraints.txt \
|
||||||
|
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} \
|
||||||
|
{opts} {packages}
|
||||||
|
commands =
|
||||||
|
{[testenv]commands}
|
||||||
|
stestr run {posargs}
|
||||||
|
stestr slowest
|
||||||
|
|
||||||
[testenv:py36]
|
[testenv:py36]
|
||||||
basepython = python3.6
|
basepython = python3.6
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user