From 5f8a038b7d53f3c8a5fc96be0fe91322ad959ba0 Mon Sep 17 00:00:00 2001 From: Camille Rodriguez Date: Tue, 27 Aug 2019 09:00:42 -0400 Subject: [PATCH] Avoid pollution and false positives with tox.ini - added zuul.yaml for osci tests - removing sitepackages in tox.ini to avoid test env pollution - skip_missing_interpreters in tox.ini set to False to avoid false positives by skipping missing interpreters. Change-Id: Iea480553fe9cdac500c72f56a7753205fe236564 --- .zuul.yaml | 5 +++++ tox.ini | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .zuul.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..8057c6c --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,5 @@ +- project: + templates: + - python35-charm-jobs + - openstack-python3-train-jobs + diff --git a/tox.ini b/tox.ini index b3b4743..923b7ae 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,10 @@ [tox] envlist = pep8,py27,py34,py35 skipsdist = True -skip_missing_interpreters = True +# NOTE(beisner): Avoid build/test env pollution by not enabling sitepackages. +sitepackages = False +# NOTE(beisner): Avoid false positives by not skipping missing interpreters. +skip_missing_interpreters = False [testenv] setenv = VIRTUAL_ENV={envdir} @@ -28,6 +31,18 @@ deps = -r{toxinidir}/test-requirements.txt # TODO: Need to write unit tests then remove the following command. commands = /bin/true +[testenv:py36] +basepython = python3.6 +deps = -r{toxinidir}/test-requirements.txt +# TODO: Need to write unit tests then remove the following command. +commands = /bin/true + +[testenv:py37] +basepython = python3.7 +deps = -r{toxinidir}/test-requirements.txt +# TODO: Need to write unit tests then remove the following command. +commands = /bin/true + [testenv:pep8] basepython = python2.7 deps = -r{toxinidir}/test-requirements.txt