summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts
diff options
context:
space:
mode:
authorDeepshikha khandelwal <dkhandel@redhat.com>2018-11-12 11:43:41 +0530
committerDeepshikha khandelwal <dkhandel@redhat.com>2018-11-12 11:43:41 +0530
commit6c58e043d0e2c5bab3d4def80e70fbd82eecf789 (patch)
tree8bff698789d4f2d8cbb896ae96dca5c999076777 /build-gluster-org/scripts
parentf272639b6778378f0dba2bcd0affb25fe3c54c5b (diff)
Install flake8 and pylint for python-lint job
Change-Id: Ib99cc633b0ba1307ecdae456705f697e6b0d22f2
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r--build-gluster-org/scripts/python-lint.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/build-gluster-org/scripts/python-lint.sh b/build-gluster-org/scripts/python-lint.sh
index 772b6ba..0db01af 100644
--- a/build-gluster-org/scripts/python-lint.sh
+++ b/build-gluster-org/scripts/python-lint.sh
@@ -6,6 +6,13 @@ mkdir $RESULT
./autogen.sh
./configure --disable-bd-xlator --enable-debug --enable-gnfs --silent
+# create and activate virtual env
+virtualenv --system-site-packages env
+. env/bin/activate
+
+#install flake8 and pylint
+pip install -I flake8 pylint
+
# run flake8
flake8 . >"$RESULT/flake8-check.txt"
FLAKE_COUNT="$(wc -l < '$RESULT/flake8-check.txt')"