addintion of json file
This commit is contained in:
parent
96b2680378
commit
a605c58c30
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
|
@ -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
1
cc_report.json
Normal file
|
@ -0,0 +1 @@
|
|||
cc_report.json
|
1
mi_report.json
Normal file
1
mi_report.json
Normal file
|
@ -0,0 +1 @@
|
|||
mi_report.json
|
1
raw_report.json
Normal file
1
raw_report.json
Normal file
|
@ -0,0 +1 @@
|
|||
raw_report.json
|
Loading…
Reference in New Issue
Block a user