From e6a39fc7456623f2cd7f62206ec4831d75650600 Mon Sep 17 00:00:00 2001 From: "shikhar.s" Date: Wed, 28 Aug 2019 20:08:59 +0530 Subject: [PATCH] changes in file and environment --- Jenkinsfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index da92aeff..674365a3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -135,10 +135,19 @@ pipeline { echo "Test coverage" - sh ''' pip install coverage + sh ''' + echo ${SHELL} + [ -d venv ] && rm -rf venv + #virtualenv --python=python2.7 venv + virtualenv venv + #. venv/bin/activate + export PATH=${VIRTUAL_ENV}/bin:${PATH} + python setup.py install + pip install coverage coverage run src/bitmessagemain.py -t 1 1 2 3 python -m coverage xml -o PyBitmessage/coverage.xml ''' + echo "Style check" sh ''' source activate ${BUILD_TAG} pylint PyBitmessage || true