As devstack moves towards testing with python3 it would be potentially useful to run devstack-gate without depending on python2. There are likely other items that need porting/testing, but this is a start in that process and makes sure we can test the test-matrix.py script with python2 and 3. Change-Id: Ida4906bfebc839bb7a0df11f53966a6b8c45689f
31 lines
643 B
INI
31 lines
643 B
INI
[tox]
|
|
envlist = bashate
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
[testenv:run-tests]
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
bash -c "./run-tests.sh"
|
|
|
|
[testenv:py3-run-tests]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
bash -c "./run-tests.sh"
|
|
|
|
[testenv:bashate]
|
|
deps=
|
|
{env:BASHATE_INSTALL_PATH:bashate==0.5.0}
|
|
whitelist_externals=
|
|
bash
|
|
# bashate options:
|
|
# -i E006 : ignore long lines
|
|
# -e E005 : error if not starting with #!
|
|
commands =
|
|
bash -c "ls *.sh | xargs bashate -v {posargs} -iE006 -eE005"
|