Fix bashate voting job

The bashate job, a voting job, has been failing for a while due to
two bugs. Fix the two bugs that require modifications to tox's
configuration file, tox.ini.

Bug #1527562
Remove inline comments after line escape that isn't understood
by tox's ini parser.
This is due to the backward incompatible fix for,
https://bitbucket.org/hpk42/tox/issues/181

Bug #1554019
Ignore .xml files that do not need to comply with bashate.

Closes-Bug: #1527562
Closes-Bug: #1554019

Change-Id: Id11275d5d15e30d2558a475a4877e6d71bdc6726
This commit is contained in:
Ramana Raja 2015-12-23 20:41:37 +05:30
parent fdd4851cc1
commit c7e09efaa1
1 changed files with 7 additions and 6 deletions

13
tox.ini
View File

@ -11,15 +11,16 @@ install_command = pip install {opts} {packages}
deps = bashate
whitelist_externals = bash
commands = bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
-not \( -type d -name doc -prune \) \ # skip documentation
-type f \ # only files
-not -name \*~ \ # skip editors, readme, etc
-not \( -type d -name .?\* -prune \) \
-not \( -type d -name doc -prune \) \
-type f \
-not -name \*~ \
-not -name \*.md \
-not -name \*.xml \
\( \
-name \*.sh -or \
-name \*rc -or \
-name functions\* -or \
-wholename \*/lib/\* \ # /lib files are shell, but
\) \ # have no extension
-wholename \*/lib/\* \
\) \
-print0 | xargs -0 bashate -v"