summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2018-01-11 15:03:23 -0800
committerRoss Brattain <ross.b.brattain@intel.com>2018-01-11 15:03:54 -0800
commitb9f759e9c1be95b66a18927456d112866c5a54bf (patch)
tree254665cbab59d06365219e1138eb081ba1b1a1bc
parent10c40df0e3eb26ec2699a869772622a88a3ef601 (diff)
pylint: try to change formatting for Jenkins again
looks like we have to add var to tox passenv Change-Id: Iba2da2123ae531e026897308769aa832c7eb6d04 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
-rw-r--r--tools/coding-checks.sh2
-rw-r--r--tox.ini2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/coding-checks.sh b/tools/coding-checks.sh
index 6a12a1e99..615f2c3de 100644
--- a/tools/coding-checks.sh
+++ b/tools/coding-checks.sh
@@ -40,7 +40,7 @@ run_pylint () {
fi
# make Jenkins output parseable because Jenkins doesn't handle color
# enventually we should use the Jenkins Pylint plugin or other tools
- if [ -n "${JENKINS_HOME:-}" ] ; then
+ if [ -n "${BRANCH:-}" ] ; then
output_format="--output-format=parseable"
fi
echo "Running pylint..."
diff --git a/tox.ini b/tox.ini
index 9a82878b0..822ffdab4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@ envlist = py{27,3},pep8,functional{,-py3},coverage
[testenv]
usedevelop=True
-passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY BRANCH
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt