Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/swh-pipeline.groovy
Show All 39 Lines | stage('Checkout') {{ | ||||
}} | }} | ||||
}} | }} | ||||
stage('Static analysis') {{ | stage('Static analysis') {{ | ||||
steps {{ | steps {{ | ||||
echo 'flake8' | echo 'flake8' | ||||
sh '''python3 -m tox -e flake8''' | sh '''python3 -m tox -e flake8''' | ||||
echo 'mypy' | |||||
sh '''if python3 -m tox -a | grep -qx mypy ; then python3 -m tox -e mypy ; fi''' | |||||
echo 'radon'; | echo 'radon'; | ||||
sh ''' | sh ''' | ||||
mkdir -p reports | mkdir -p reports | ||||
python3 -m radon raw --json swh/ > reports/raw_report.json | python3 -m radon raw --json swh/ > reports/raw_report.json | ||||
python3 -m radon cc --json swh/ > reports/cc_report.json | python3 -m radon cc --json swh/ > reports/cc_report.json | ||||
python3 -m radon mi --json swh/ > reports/mi_report.json | python3 -m radon mi --json swh/ > reports/mi_report.json | ||||
python3 -m radon hal --json swh/ > reports/hal_report.json | python3 -m radon hal --json swh/ > reports/hal_report.json | ||||
python3 -m radon cc --xml swh/ > reports/cc_report.xml | python3 -m radon cc --xml swh/ > reports/cc_report.xml | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |