Minor zuul and tox file cleanup after manifest re-org

The repo re-org has removed 'stx-' from the name of the repos
that are checked out from the manifest, so there is no
need for special prefix handling in tox to accomodate
differences with checking out using "repo" or "git clone".

With the addition of tsconfig to this config repo, it will
generate an intermediate .stestr folder if tox is run
in that subdir.  This has been added to the top level
.gitignore file.

The required-projects for the zuul jobs have been
cleaned up and references to STX-PREFIX are removed.

Change-Id: I8454305867445ad8b0feb9f46d44c7a570e9142a
Story: 2006166
Task: 36490
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
This commit is contained in:
Al Bailey 2019-09-06 15:37:10 -05:00
parent 27e3ba045e
commit 80b515349b
4 changed files with 6 additions and 34 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@
.*.swp
.coverage
.installed.cfg
.stestr
.testrepository
.tox
.venv

View File

@ -96,8 +96,6 @@
files:
- controllerconfig/*
vars:
tox_environment:
STX_PREFIX: ''
tox_envlist: flake8
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
@ -106,13 +104,10 @@
parent: tox
description: Run py27 tests for controllerconfig
required-projects:
- starlingx/update
- starlingx/fault
files:
- controllerconfig/*
vars:
tox_environment:
STX_PREFIX: ''
tox_envlist: py27
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
@ -121,13 +116,10 @@
parent: tox
description: Run pylint tests for controllerconfig
required-projects:
- starlingx/update
- starlingx/fault
files:
- controllerconfig/*
vars:
tox_environment:
STX_PREFIX: ''
tox_envlist: pylint
tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
@ -162,13 +154,7 @@
Run py27 test for cgts-client
files:
- sysinv/cgts-client/*
required-projects:
- starlingx/update
- starlingx/fault
- starlingx/integ
vars:
tox_environment:
STX_PREFIX: ''
tox_envlist: py27
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
@ -180,8 +166,6 @@
files:
- sysinv/cgts-client/*
vars:
tox_environment:
STX_PREFIX: ''
tox_envlist: pep8
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini
@ -192,12 +176,6 @@
Run pylint test for cgts-client
files:
- sysinv/cgts-client/*
required-projects:
- starlingx/update
- starlingx/fault
- starlingx/integ
vars:
tox_environment:
STX_PREFIX: ''
tox_envlist: pylint
tox_extra_args: -c sysinv/cgts-client/cgts-client/tox.ini

View File

@ -16,16 +16,12 @@ install_command = pip install \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \
{opts} {packages}
# Note: Developers can leave STX_PREFIX unset in their env, and it will default to "stx-".
# Zuul sets STX_PREFIX to an empty string.
setenv = STX_PREFIX = {env:STX_PREFIX:stx-}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-e{[tox]stxdir}/{env:STX_PREFIX}fault/fm-api
-e{[tox]stxdir}/{env:STX_PREFIX}config/tsconfig/tsconfig
-e{[tox]stxdir}/{env:STX_PREFIX}config/sysinv/sysinv/sysinv
-e{[tox]stxdir}/{env:STX_PREFIX}config/sysinv/cgts-client/cgts-client
-e{[tox]stxdir}/fault/fm-api
-e{[tox]stxdir}/config/tsconfig/tsconfig
-e{[tox]stxdir}/config/sysinv/sysinv/sysinv
-e{[tox]stxdir}/config/sysinv/cgts-client/cgts-client
[testenv:venv]
commands = {posargs}

View File

@ -9,13 +9,10 @@ stxdir = {toxinidir}/../../../..
distshare={toxworkdir}/.tox/distshare
[testenv]
# Note: Developers can leave STX_PREFIX unset in their env, and it will default to "stx-".
# Zuul sets STX_PREFIX to an empty string.
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
OS_TEST_PATH=cgtsclient/tests
TESTR_START_DIR=cgtsclient/tests
STX_PREFIX = {env:STX_PREFIX:stx-}
basepython = python2.7
usedevelop = True
install_command = pip install \
@ -24,7 +21,7 @@ install_command = pip install \
{opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-e{[tox]stxdir}/{env:STX_PREFIX}config/tsconfig/tsconfig
-e{[tox]stxdir}/config/tsconfig/tsconfig
commands =
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.py[c|o]' -delete