Create a tox.ini file to install bashate into a virtualenv for running
tests. It can be run with a command such as "tox -v -ebashate". The find
command being used is equivalent to the default list of files discovered
by bashate plus the exclusion of the .tox/ directory. Also add the .tox/
directory to the .gitignore file.
Change-Id: I94cab4e4a9118d62edfce29ead1f1e2a5f48e529
11 | 12 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,13 @@ |
0 |
+[tox] |
|
1 |
+minversion = 1.6 |
|
2 |
+skipsdist = True |
|
3 |
+envlist = bashate |
|
4 |
+ |
|
5 |
+[testenv] |
|
6 |
+usedevelop = False |
|
7 |
+install_command = pip install {opts} {packages} |
|
8 |
+ |
|
9 |
+[testenv:bashate] |
|
10 |
+deps = bashate |
|
11 |
+whitelist_externals = bash |
|
12 |
+commands = bash -c "find {toxinidir} -not -wholename \*.tox/\* -and \( -name \*.sh -or -name \*rc -or -name functions\* -or \( -wholename lib/\* -and -not -name \*.md \) \) -print0 | xargs -0 bashate -v" |