Commit 60029b31 authored by Javier Jardón's avatar Javier Jardón

.gitlab-ci.yml: Move radon job to post stage

parent ae927b81
Pipeline #21060054 passed with stages
in 16 minutes and 50 seconds
......@@ -50,31 +50,6 @@ source_dist:
paths:
- dist/
analysis:
stage: prepare
script:
- |
pip3 install radon
mkdir analysis
- |
echo "Calculating Maintainability Index"
radon mi -s -j buildstream > analysis/mi.json
radon mi -s buildstream
- |
echo "Calculating Cyclomatic Complexity"
radon cc -a -s -j buildstream > analysis/cc.json
radon cc -a -s buildstream
- |
echo "Calculating Raw Metrics"
radon raw -s -j buildstream > analysis/raw.json
radon raw -s buildstream
artifacts:
paths:
- analysis/
#####################################################
# Test stage #
......@@ -207,6 +182,32 @@ codequality:
artifacts:
paths: [codeclimate.json]
analysis:
stage: post
script:
- |
pip3 install radon
mkdir analysis
- |
echo "Calculating Maintainability Index"
radon mi -s -j buildstream > analysis/mi.json
radon mi -s buildstream
- |
echo "Calculating Cyclomatic Complexity"
radon cc -a -s -j buildstream > analysis/cc.json
radon cc -a -s buildstream
- |
echo "Calculating Raw Metrics"
radon raw -s -j buildstream > analysis/raw.json
radon raw -s buildstream
artifacts:
paths:
- analysis/
# Collate coverage reports
#
coverage:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment