From b5ef8e2716ad4e9479e00a0ff33f5b8288e7c30f Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 26 Apr 2019 10:40:07 -0500 Subject: [PATCH] Set up repo for staging tests Do base repo config for running tests from staging repos Change-Id: I765d96c19b7a818269289af7b1f5820c414b24fd Signed-off-by: Dean Troyer --- .gitignore | 33 +++++++++++++++++++++++++++++++++ README.rst | 9 ++++++--- tox.ini | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe6fa3c --- /dev/null +++ b/.gitignore @@ -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/ diff --git a/README.rst b/README.rst index a57dc2c..048f8b9 100644 --- a/README.rst +++ b/README.rst @@ -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. diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..25c5388 --- /dev/null +++ b/tox.ini @@ -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"