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') { stage('Static code metrics') {
steps { steps {
// echo "Raw metrics" echo "Raw metrics"
// sh ''' export PATH=${VIRTUAL_ENV}/bin:${PATH} sh ''' echo ${SHELL}
// radon raw --json src/ > raw_report.json [ -d venv ] && rm -rf venv
// radon cc --json src/ > cc_report.json #virtualenv --python=python2.7 venv
// radon mi --json src/ > mi_report.json 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" 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