From 8f6cad8b12df753c457a35d9028baaaeb2913202 Mon Sep 17 00:00:00 2001 From: "shikhar.s" Date: Sat, 6 Jul 2019 18:27:36 +0530 Subject: [PATCH] add of pylint check2 --- Jenkinsfile | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3722d16a..d502ed73 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,7 +29,7 @@ pipeline { [ -d venv ] && rm -rf venv #virtualenv --python=python2.7 venv virtualenv venv - #. venv/bin/activate + source venv/bin/activate export PATH=${VIRTUAL_ENV}/bin:${PATH} pip install --upgrade pip pip install -r requirements.txt -r dev-requirements.txt @@ -77,7 +77,7 @@ pipeline { [ -d venv ] && rm -rf venv #virtualenv --python=python2.7 venv virtualenv venv - #. venv/bin/activate + source venv/bin/activate export PATH=${VIRTUAL_ENV}/bin:${PATH} python setup.py install sudo /home/cis/.local/bin/nosetests --with-xunit tests @@ -85,27 +85,27 @@ pipeline { } } - stage('Pylint Checker') { - steps { - sh ''' - echo ${SHELL} - [ -d venv ] && rm -rf venv - #virtualenv --python=python2.7 venv - virtualenv venv - #. venv/bin/activate - export PATH=${VIRTUAL_ENV}/bin:${PATH} + // stage('Pylint Checker') { + // steps { + // sh ''' + // echo ${SHELL} + // [ -d venv ] && rm -rf venv + // #virtualenv --python=python2.7 venv + // virtualenv venv + // source venv/bin/activate + // export PATH=${VIRTUAL_ENV}/bin:${PATH} - pip install pylint + // pip install pylint - echo ${pwd} - ### Need this because some strange control sequences when using default TERM=xterm - export TERM="linux" + // echo ${pwd} + // ### Need this because some strange control sequences when using default TERM=xterm + // export TERM="linux" - ## || exit 0 because pylint only exits with 0 if everything is correct - pylint --rcfile=pylint.cfg $(find . -maxdepth 1 -name "*.py" -print) Pybitmessage/ > pylint.log || exit 0 - ''' - } - } + // ## || exit 0 because pylint only exits with 0 if everything is correct + // pylint --rcfile=pylint.cfg $(find . -maxdepth 1 -name "*.py" -print) Pybitmessage/ > pylint.log || exit 0 + // ''' + // } + // } stage('Test Run') {