summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-05-28 10:43:02 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-05-28 12:45:12 +0200
commit40f255a466c3a11f3b7572724c24ab5d870755ce (patch)
tree44aa174a7f2144015c729e18696dc0e7c2155df5
parentf9a37193d349217614e5953d5eae9cef4a287af1 (diff)
Export the Pylint results via pylint.out
It allows integrating Pylint with Jenkins (pylint.out can be defined as the "XML filename pattern" after installing the Violations plugin [1]). It's considered as fine to locally disable warnings such as docstrings in unit tests. No pylint rcfile is defined for only two options. Tox still prints the partial results in console to be interpreted by users. The persistent flag is removed to conform with nosetests args. [1] https://wiki.jenkins-ci.org/display/JENKINS/Violations Change-Id: I21662b27c8e4b61e65c4c3f5aab968e3e7dd6d90 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--.gitignore1
-rw-r--r--tox.ini5
2 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 341cf2811..f6e406203 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ nosetests.xml
functest.egg-info
*venv
.tox
+*.out
diff --git a/tox.ini b/tox.ini
index bde3a9757..e22e1489e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -29,8 +29,9 @@ basepython = python2.7
deps =
{[testenv]deps}
whitelist_externals = bash
-commands = bash -c \
- "pylint --persistent=n functest | sed -ne '/Raw metrics/,//p'"
+commands = bash -c "\
+ pylint -f parseable --disable=locally-disabled functest | \
+ tee pylint.out | sed -ne '/Raw metrics/,//p'"
[testenv:py35]
dirs =