addintion of json file

This commit is contained in:
shikhar.s 2019-08-28 21:09:39 +05:30
parent 96b2680378
commit a605c58c30
4 changed files with 16 additions and 6 deletions

19
Jenkinsfile vendored
View File

@ -126,12 +126,19 @@ pipeline {
stage('Static code metrics') {
steps {
// echo "Raw metrics"
// sh ''' export PATH=${VIRTUAL_ENV}/bin:${PATH}
// radon raw --json src/ > raw_report.json
// radon cc --json src/ > cc_report.json
// radon mi --json src/ > mi_report.json
// '''
echo "Raw metrics"
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 radon
radon raw --json PyBitmessage/ > raw_report.json
radon cc --json PyBitmessage/ > cc_report.json
radon mi --json PyBitmessage/ > mi_report.json
'''
echo "Test coverage"

1
cc_report.json Normal file
View File

@ -0,0 +1 @@
cc_report.json

1
mi_report.json Normal file
View File

@ -0,0 +1 @@
mi_report.json

1
raw_report.json Normal file
View File

@ -0,0 +1 @@
raw_report.json