diff options
author | Stefan Kobza <skobza@cisco.com> | 2016-02-22 10:34:40 +0100 |
---|---|---|
committer | Stefan Kobza <skobza@cisco.com> | 2016-02-22 10:34:40 +0100 |
commit | 22e4a61037b87592a3f29a3f19f625406fd06589 (patch) | |
tree | 6ec84d7688d70bf7dae24e42d6a4aef167abbded /jjb | |
parent | 497f92e25767fce702cacdc6fcd683ee3eec7290 (diff) |
Add PYTHONPATH to pylint execution env.
Change-Id: If8a696ee812ddc0b7b3cdb262455d5b2ac4c54d0
Signed-off-by: Stefan Kobza <skobza@cisco.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/csit/include-raw-csit-pylint.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/jjb/csit/include-raw-csit-pylint.sh b/jjb/csit/include-raw-csit-pylint.sh index c0cfe6c22..272e5fa12 100644 --- a/jjb/csit/include-raw-csit-pylint.sh +++ b/jjb/csit/include-raw-csit-pylint.sh @@ -1,6 +1,18 @@ #!/bin/bash +set -x + sudo apt-get install -y --force-yes pylint -find resources -name \*.py | xargs pylint --rcfile=pylint.cfg > pylint.log || true + +# Re-create virtual environment +rm -rf env || true +virtualenv env +. env/bin/activate + +# Install requirements, so all CSIT python dependencies are met +pip install -r requirements.txt + +# Run pylint, but hide its' return value until python warnings are cleared +PYTHONPATH=`pwd` pylint --rcfile=pylint.cfg resources/ > pylint.log || true # vim: ts=4 ts=4 sts=4 et : |