ee0b47f1a2
Newer tox versions parse tox.ini differently, bash like # comments are not parsed after end of line "\" signs. Reformat file so that bashate tox environment works. Change-Id: I365b56053c282ee251acf4d23ff8885272709447
32 lines
977 B
INI
32 lines
977 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = bashate
|
|
|
|
[testenv]
|
|
usedevelop = False
|
|
install_command = pip install {opts} {packages}
|
|
|
|
[testenv:bashate]
|
|
deps = bashate
|
|
whitelist_externals = bash
|
|
# The find checks for:
|
|
# - prune all 'dot' dirs
|
|
# - skip documentation
|
|
# - only files
|
|
# - skip editors, readme, etc
|
|
# - /lib files are shell, but have no extension
|
|
commands = bash -c "find {toxinidir} \
|
|
-not \( -type d -name .?\* -prune \) \
|
|
-not \( -type d -name doc -prune \) \
|
|
-type f \
|
|
-not -name \*~ \
|
|
-not -name \*.md \
|
|
\( \
|
|
-name \*.sh -or \
|
|
-name \*rc -or \
|
|
-name functions\* -or \
|
|
-wholename \*/lib/\* \
|
|
\) \
|
|
-print0 | xargs -0 bashate -v"
|