Add support for python 3 inventory tests
Define a new tox environment for inventory the inventory tests with the Python 3.5 interpreter. This could not be done with [1] due to the way generative environments create new environments, rather than modifying already existing and named ones. For now, the py3-inventory env is not added to linters, in order to keep it from failing the gates. 1: https://tox.readthedocs.io/en/latest/config.html#generating-environments-conditional-settings Change-Id: Ife1ecc6c36c47f38c00bd19a193a637e39a8b4b8
This commit is contained in:
parent
a1d51d58e7
commit
ed4ccd5d40
9
tox.ini
9
tox.ini
@ -1,7 +1,7 @@
|
||||
[tox]
|
||||
minversion = 2.0
|
||||
skipsdist = True
|
||||
envlist = linters,docs,releasenotes
|
||||
envlist = linters,docs,releasenotes,inventory,py3-inventory
|
||||
|
||||
|
||||
[testenv]
|
||||
@ -157,6 +157,13 @@ commands =
|
||||
coverage run -a {toxinidir}/tests/test_filesystem.py
|
||||
coverage report --show-missing --include={toxinidir}/playbooks/inventory/*,{toxinidir}/osa_toolkit/*
|
||||
|
||||
[testenv:py3-inventory]
|
||||
basepython = python3.5
|
||||
setenv =
|
||||
{[testenv:inventory]setenv}
|
||||
commands =
|
||||
{[testenv:inventory]commands}
|
||||
|
||||
|
||||
[testenv:linters]
|
||||
deps =
|
||||
|
Loading…
x
Reference in New Issue
Block a user