Files
devstack-gate/tox.ini
Clark Boylan 17e2df31b2 Set tox basepython to python2
bashate isn't working under python3 so we pin to python2.

Change-Id: Idbff334bec75bdbb7f7e46a164d8904768ef5881
2019-12-18 08:45:07 -08:00

25 lines
569 B
INI

[tox]
envlist = bashate
minversion = 1.6
skipsdist = True
[testenv]
basepython = python2
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
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 #!
# E042 : error if "local" hides exit status
commands =
bash -c "ls *.sh | xargs bashate -v {posargs} -iE006 -eE005,E042"