4118c144ca
The plan is for both Debian and Centos to be built from the master branch. At runtime they have different Python environments. Different versions of packages are required for testing. This commit is an example of what to modify for other repos for both zuul and tox in order to obtain test environments for both Python 2 and Python 3. The targeted repo for this example was stx/config/sysinv/sysinv/sysinv. The targeted tox test environments were flake8 and pylint. Note: Pep8 testenv is preserved for aligning with opendev openstack zuul jobs (e.g openstack-tox-pep8). Story: 2008454 Task: 42842 Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com> Change-Id: I70e4521eb4438a340199964fd2dbffa29ae9932b
361 lines
13 KiB
YAML
361 lines
13 KiB
YAML
---
|
|
- project:
|
|
templates:
|
|
- publish-stx-docs
|
|
- stx-api-ref-jobs
|
|
- stx-release-notes-jobs
|
|
check:
|
|
jobs:
|
|
- openstack-tox-linters
|
|
- sysinv-tox-py27
|
|
- sysinv-tox-py36
|
|
- sysinv-tox-flake8-py27
|
|
- sysinv-tox-flake8-py36
|
|
- sysinv-tox-pylint-py27
|
|
- sysinv-tox-pylint-py36
|
|
- sysinv-tox-bandit
|
|
- controllerconfig-tox-py27
|
|
- controllerconfig-tox-py36
|
|
- controllerconfig-tox-flake8
|
|
- controllerconfig-tox-pylint
|
|
- cgtsclient-tox-py27
|
|
- cgtsclient-tox-py36
|
|
- cgtsclient-tox-pep8
|
|
- cgtsclient-tox-pylint
|
|
gate:
|
|
jobs:
|
|
- openstack-tox-linters
|
|
- sysinv-tox-py27
|
|
- sysinv-tox-py36
|
|
- sysinv-tox-flake8-py27
|
|
- sysinv-tox-flake8-py36
|
|
- sysinv-tox-pylint-py27
|
|
- sysinv-tox-pylint-py36
|
|
- sysinv-tox-bandit
|
|
- controllerconfig-tox-py27
|
|
- controllerconfig-tox-py36
|
|
- controllerconfig-tox-flake8
|
|
- controllerconfig-tox-pylint
|
|
- cgtsclient-tox-py27
|
|
- cgtsclient-tox-py36
|
|
- cgtsclient-tox-pep8
|
|
- cgtsclient-tox-pylint
|
|
post:
|
|
jobs:
|
|
- stx-config-upload-git-mirror
|
|
|
|
- job:
|
|
name: sysinv-tox-py27
|
|
parent: tox
|
|
description: |
|
|
Run py27 test for sysinv
|
|
nodeset: ubuntu-xenial
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: py27
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-py36
|
|
parent: tox
|
|
description: |
|
|
Run py36 test for sysinv in Python 3.6 env
|
|
nodeset: ubuntu-bionic
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: py36
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-flake8-py27
|
|
parent: tox
|
|
description: |
|
|
Run flake8 test for sysinv in Python 2.7 env
|
|
nodeset: ubuntu-bionic
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: flake8-py27
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-flake8-py36
|
|
parent: tox
|
|
description: |
|
|
Run flake8 test for sysinv in Python 3.6 env
|
|
nodeset: ubuntu-bionic
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: flake8-py36
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-pylint-py27
|
|
parent: tox
|
|
description: |
|
|
Run pylint test for sysinv in Pyhton 2.7 env
|
|
nodeset: ubuntu-bionic
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: pylint-py27
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-pylint-py36
|
|
parent: tox
|
|
description: |
|
|
Run pylint test for sysinv in Python 3.6 env
|
|
nodeset: ubuntu-bionic
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: pylint-py36
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: sysinv-tox-bandit
|
|
parent: tox
|
|
description: |
|
|
Run bandit test for sysinv
|
|
nodeset: ubuntu-bionic
|
|
files:
|
|
- sysinv/sysinv/*
|
|
vars:
|
|
tox_envlist: bandit
|
|
tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
|
|
|
|
- job:
|
|
name: controllerconfig-tox-py27
|
|
parent: tox
|
|
description: Run py27 tests for controllerconfig
|
|
nodeset: ubuntu-xenial
|
|
required-projects:
|
|
- starlingx/fault
|
|
files:
|
|
- controllerconfig/*
|
|
vars:
|
|
tox_envlist: py27
|
|
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
|
|
|
|
- job:
|
|
name: controllerconfig-tox-py36
|
|
parent: tox
|
|
description: Run py36 tests for controllerconfig
|
|
nodeset: ubuntu-bionic
|
|
required-projects:
|
|
- starlingx/fault
|
|
files:
|
|
- controllerconfig/*
|
|
vars:
|
|
tox_envlist: py36
|
|
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
|
|
|
|
- job:
|
|
name: controllerconfig-tox-flake8
|
|
parent: tox
|
|
description: Run flake8 tests for controllerconfig
|
|
nodeset: ubuntu-xenial
|
|
files:
|
|
- controllerconfig/*
|
|
vars:
|
|
tox_envlist: flake8
|
|
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
|
|
|
|
- job:
|
|
name: controllerconfig-tox-pylint
|
|
parent: tox
|
|
description: Run pylint tests for controllerconfig
|
|
nodeset: ubuntu-xenial
|
|
required-projects:
|
|
- starlingx/fault
|
|
files:
|
|
- controllerconfig/*
|
|
vars:
|
|
tox_envlist: pylint
|
|
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
|
|
|
|
- job:
|
|
name: flock-devstack-config
|
|
parent: flock-devstack-base
|
|
required-projects:
|
|
- starlingx/fault
|
|
- starlingx/update
|
|
- starlingx/utilities
|
|
vars:
|
|
tox_envlist: functional
|
|
devstack_services:
|
|
# StarlingX services
|
|
fm-common: true
|
|
fm-api: true
|
|
cgtsclient: true
|
|
sysinv-agent: true
|
|
sysinv-api: true
|
|
sysinv-cond: true
|
|
tls-proxy: false
|
|
devstack_plugins:
|
|
config: https://opendev.org/starlingx/config
|
|
fault: https://opendev.org/starlingx/fault
|
|
integ: https://opendev.org/starlingx/integ
|
|
update: https://opendev.org/starlingx/update
|
|
|
|
- job:
|
|
name: cgtsclient-tox-py27
|
|
parent: tox
|
|
description: |
|
|
Run py27 test for cgts-client
|
|
nodeset: ubuntu-xenial
|
|
files:
|
|
- sysinv/cgts-client/*
|
|
vars:
|
|
tox_envlist: py27
|
|
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
|
|
|
|
- job:
|
|
name: cgtsclient-tox-py36
|
|
parent: tox
|
|
description: |
|
|
Run py36 test for cgts-client
|
|
nodeset: ubuntu-bionic
|
|
files:
|
|
- sysinv/cgts-client/*
|
|
vars:
|
|
tox_envlist: py36
|
|
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
|
|
|
|
|
|
- job:
|
|
name: cgtsclient-tox-pep8
|
|
parent: tox
|
|
description: |
|
|
Run pep8 test for cgts-client
|
|
nodeset: ubuntu-bionic
|
|
files:
|
|
- sysinv/cgts-client/*
|
|
vars:
|
|
tox_envlist: pep8
|
|
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
|
|
|
|
- job:
|
|
name: cgtsclient-tox-pylint
|
|
parent: tox
|
|
description: |
|
|
Run pylint test for cgts-client
|
|
nodeset: ubuntu-xenial
|
|
files:
|
|
- sysinv/cgts-client/*
|
|
vars:
|
|
tox_envlist: pylint
|
|
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
|
|
|
|
- job:
|
|
name: stx-config-upload-git-mirror
|
|
parent: upload-git-mirror
|
|
description: >
|
|
Mirrors opendev.org/starlingx/config to
|
|
github.com/starlingx/config
|
|
vars:
|
|
git_mirror_repository: starlingx/config
|
|
secrets:
|
|
- name: git_mirror_credentials
|
|
secret: stx-config-github-secret
|
|
pass-to-parent: true
|
|
|
|
- secret:
|
|
name: stx-config-github-secret
|
|
data:
|
|
user: git
|
|
host: github.com
|
|
# yamllint disable-line rule:line-length
|
|
host_key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|
|
ssh_key: !encrypted/pkcs1-oaep
|
|
- ezp3pjapGFU4p0lqwUsI9o6qvWaoTahWJ/j7i27D8wJ6gNmLUuiWTQlfJHoxGyp+EOWpF
|
|
WgmBytwN9yAMf7kfiTHLWIaKIlw7ruErsi0pWkI5h5hWqxQCea+cQywLc5xby53NWc+Y/
|
|
c/N/sNYh/+jeH2d1Pn4MDKEaeGKkjHyHd3ZDyLaH0qUSrtTQt5V4TJe8h5L8Vr+jIs/wr
|
|
I6JFbw+wMDLeTjnJGPz3HZpvjAAbdKdtLmi30egH4WV1nmv1eEFV4vXaoclhCbJdcu2vK
|
|
b4nRR8nEXGq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