Set up repo for staging tests

Do base repo config for running tests from staging repos

Change-Id: I765d96c19b7a818269289af7b1f5820c414b24fd
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
Dean Troyer 2019-04-26 10:40:07 -05:00
parent e6679baf51
commit b5ef8e2716
3 changed files with 75 additions and 3 deletions

33
.gitignore vendored Normal file
View File

@ -0,0 +1,33 @@
*.a
*.egg
*.egg-info
*.o
*.py[co]
*.pyc
*.so
*.sqlite
.*.swp
.coverage
.installed.cfg
.testrepository
.tox
.venv
AUTHORS
ChangeLog
_build
build
cover
coverage.xml
develop-eggs
dist
eggs
sdist
# Sphinx documentation
doc/build/
# Release Notes documentation
releasenotes/build
# Api Ref documentation
api-ref/build/

View File

@ -1,4 +1,7 @@
stx-tis-repo
============
========
tis-repo
========
Placeholder repo
StarlingX Test In Staging
This repo contains test jobs for OpenDev Zuul that pull from starlingx-staging.

36
tox.ini Normal file
View File

@ -0,0 +1,36 @@
[tox]
minversion = 2.3
skipsdist = True
[testenv]
basepython = python3
whitelist_externals =
bash
find
rm
env
ls
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=160
PYTHONDONTWRITEBYTECODE=1
[testenv:debug]
envdir = {toxworkdir}/shared
commands =
bash -c "pwd; cd ../../../stx-nova; git branch"
ls -l ../../../stx-nova
[testenv:pep8]
envdir = {toxworkdir}/shared
commands =
bash -c "echo placeholder env: pep8"
[testenv:functional]
envdir = {toxworkdir}/shared
commands =
bash -c "echo placeholder env: functional"