diff --git a/Jenkinsfile b/Jenkinsfile index b3295439..be76cd84 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" diff --git a/cc_report.json b/cc_report.json new file mode 100644 index 00000000..bd5a516d --- /dev/null +++ b/cc_report.json @@ -0,0 +1 @@ +cc_report.json \ No newline at end of file diff --git a/mi_report.json b/mi_report.json new file mode 100644 index 00000000..ba4b6df4 --- /dev/null +++ b/mi_report.json @@ -0,0 +1 @@ +mi_report.json \ No newline at end of file diff --git a/raw_report.json b/raw_report.json new file mode 100644 index 00000000..0409bce1 --- /dev/null +++ b/raw_report.json @@ -0,0 +1 @@ +raw_report.json \ No newline at end of file