Files
devstack-gate/tox.ini
Clark Boylan 20d9f85025 Add tox target for python3 test env
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
2017-01-06 16:20:13 -08:00

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"