Add bashate tox configuration
Change-Id: I0875596c624d9dc79c01228c3236a51436166dfd
This commit is contained in:
parent
0401aadcab
commit
70a64c2bef
@ -36,9 +36,9 @@ echo "Name: nodejs
|
||||
|
||||
Version: $VERSION
|
||||
Release: $RELEASE
|
||||
Summary: Server Side JavaScript Engine
|
||||
URL: http://nodejs.org
|
||||
Group: Development/Languages
|
||||
Summary: Server Side JavaScript Engine
|
||||
URL: http://nodejs.org
|
||||
Group: Development/Languages
|
||||
License: MIT and BSD
|
||||
Requires: openssl, zlib, glibc
|
||||
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
echo "Clearing your dns"
|
||||
|
||||
for pid in `ps -elf | grep -i dnsmasq | grep nova | perl -le 'while (<>) { my $pid = (split /\s+/)[3]; print $pid; }'`
|
||||
do
|
||||
for pid in `ps -elf | grep -i dnsmasq | grep nova | perl -le 'while (<>) { my $pid = (split /\s+/)[3]; print $pid; }'`; do
|
||||
echo "Killing leftover nova dnsmasq process with process id $pid"
|
||||
kill -9 $pid
|
||||
done
|
||||
|
14
tox.ini
14
tox.ini
@ -1,6 +1,6 @@
|
||||
[tox]
|
||||
skipdist = True
|
||||
envlist = py26,py27,pep8,pylint
|
||||
envlist = py26,py27,pep8,pylint,bashate
|
||||
|
||||
[testenv]
|
||||
usedevelop = True
|
||||
@ -27,6 +27,18 @@ deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = pylint --rcfile=pylintrc anvil
|
||||
|
||||
[testenv:bashate]
|
||||
deps = bashate
|
||||
whitelist_externals = bash
|
||||
commands = bash -c "find {toxinidir} \
|
||||
-not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
|
||||
-type f \ # only files
|
||||
\( \
|
||||
-name \*.sh -or \ # all .sh files
|
||||
-path \*smithy \ # smithy
|
||||
\) \
|
||||
-print0 | xargs -0 bashate -v"
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user