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') {
|
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
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