diff options
-rw-r--r-- | ocata/test-requirements.txt | 1 | ||||
-rw-r--r-- | ocata/tox.ini | 13 | ||||
-rw-r--r-- | pike/test-requirements.txt | 1 | ||||
-rw-r--r-- | pike/tox.ini | 11 | ||||
-rw-r--r-- | windriver/test-requirements.txt | 1 | ||||
-rw-r--r-- | windriver/tox.ini | 11 |
6 files changed, 31 insertions, 7 deletions
diff --git a/ocata/test-requirements.txt b/ocata/test-requirements.txt new file mode 100644 index 00000000..97044b5c --- /dev/null +++ b/ocata/test-requirements.txt @@ -0,0 +1 @@ +pylint # GPLv2 diff --git a/ocata/tox.ini b/ocata/tox.ini index b882540d..79e0a153 100644 --- a/ocata/tox.ini +++ b/ocata/tox.ini @@ -13,7 +13,7 @@ # limitations under the License. [tox] -envlist = py27,pep8,cov +envlist = py27,pep8,cov,pylint skipsdist = true [tox:jenkins] @@ -27,8 +27,10 @@ max-complexity = 27 [testenv] setenv = PYTHONPATH = {toxinidir}/../share -deps = -r{toxinidir}/requirements.txt -commands = +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands = coverage run --branch manage.py test ocata coverage report --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*" --fail-under=30 @@ -39,3 +41,8 @@ commands=flake8 [testenv:cov] commands = coverage xml --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*, *site-packages*" +[testenv:pylint] +whitelist_externals = bash +commands = + bash -c "\ + pylint -f parseable --reports=y ocata | tee pylint.out" diff --git a/pike/test-requirements.txt b/pike/test-requirements.txt new file mode 100644 index 00000000..97044b5c --- /dev/null +++ b/pike/test-requirements.txt @@ -0,0 +1 @@ +pylint # GPLv2 diff --git a/pike/tox.ini b/pike/tox.ini index cd5327a3..c5e9e5c0 100644 --- a/pike/tox.ini +++ b/pike/tox.ini @@ -13,7 +13,7 @@ # limitations under the License. [tox] -envlist = py27,pep8,cov +envlist = py27,pep8,cov,pylint skipsdist = true [tox:jenkins] @@ -27,7 +27,9 @@ max-complexity = 27 [testenv] setenv = PYTHONPATH = {toxinidir}/../share -deps = -r{toxinidir}/requirements.txt +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt commands = coverage run --branch manage.py test pike coverage report --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*" --fail-under=30 @@ -39,3 +41,8 @@ commands=flake8 [testenv:cov] commands = coverage xml --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*, *site-packages*" +[testenv:pylint] +whitelist_externals = bash +commands = + bash -c "\ + pylint -f parseable --reports=y pike | tee pylint.out" diff --git a/windriver/test-requirements.txt b/windriver/test-requirements.txt new file mode 100644 index 00000000..97044b5c --- /dev/null +++ b/windriver/test-requirements.txt @@ -0,0 +1 @@ +pylint # GPLv2 diff --git a/windriver/tox.ini b/windriver/tox.ini index dd34e479..e5a65d39 100644 --- a/windriver/tox.ini +++ b/windriver/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27,cov +envlist = py27,cov,pylint skipsdist = true [tox:jenkins] @@ -13,7 +13,9 @@ max-complexity = 27 [testenv] setenv = PYTHONPATH = {toxinidir}/../share -deps = -r{toxinidir}/requirements.txt +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt commands = coverage run --branch manage.py test titanium_cloud coverage report --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*,*starlingx_base*" --fail-under=30 @@ -25,3 +27,8 @@ commands=flake8 [testenv:cov] commands = coverage xml --omit="./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*, *site-packages*" +[testenv:pylint] +whitelist_externals = bash +commands = + bash -c "\ + pylint -f parseable --reports=y titanium_cloud | tee pylint.out" |