Skip to content
Snippets Groups Projects
Verified Commit 364b1087 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Lizard thresholds.

parent 5170b904
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,8 @@ build docs: ...@@ -24,8 +24,8 @@ build docs:
- NUM_CYCLES=`/opt/cppcheck/bin/cpp-dependencies --stats|grep cycles|cut -d " " -f 2` - NUM_CYCLES=`/opt/cppcheck/bin/cpp-dependencies --stats|grep cycles|cut -d " " -f 2`
- echo "num_cycles $NUM_CYCLES" > metrics.txt - echo "num_cycles $NUM_CYCLES" > metrics.txt
- /opt/cppcheck/bin/cpp-dependencies --graph cpp-dependencies.dot && dot -Tsvg cpp-dependencies.dot -o build/cpp-dependencies.svg - /opt/cppcheck/bin/cpp-dependencies --graph cpp-dependencies.dot && dot -Tsvg cpp-dependencies.dot -o build/cpp-dependencies.svg
# lizard # lizard, default code complexity number (15), function line length 100, max arguments 10
- python /opt/lizard/lizard.py -l cpp -w -t 8 > lizard.txt || true - python /opt/lizard/lizard.py -l cpp -w -t 8 --length 100 --arguments 10 > lizard.txt || true
- cat lizard.txt - cat lizard.txt
- NUM_LIZARD_ISSUES=`cat lizard.txt | wc -l` - NUM_LIZARD_ISSUES=`cat lizard.txt | wc -l`
- echo "lizard_issues $NUM_LIZARD_ISSUES" >> metrics.txt - echo "lizard_issues $NUM_LIZARD_ISSUES" >> metrics.txt
...@@ -57,7 +57,7 @@ build docs: ...@@ -57,7 +57,7 @@ build docs:
sshpass -p $DOXYSEARCH_PW ssh webdev@doxysearch.opengeosys.org doxyindexer -o /var/www/doxysearch.opengeosys.org/$CI_COMMIT_BRANCH /var/www/doxysearch.opengeosys.org/$CI_COMMIT_BRANCH/searchdata.xml sshpass -p $DOXYSEARCH_PW ssh webdev@doxysearch.opengeosys.org doxyindexer -o /var/www/doxysearch.opengeosys.org/$CI_COMMIT_BRANCH /var/www/doxysearch.opengeosys.org/$CI_COMMIT_BRANCH/searchdata.xml
fi fi
artifacts: artifacts:
expose_as: 'Doxygen' expose_as: "Doxygen"
paths: paths:
- Doxygen.html - Doxygen.html
- build/docs - build/docs
...@@ -71,12 +71,12 @@ build docs: ...@@ -71,12 +71,12 @@ build docs:
check docs links: check docs links:
stage: check stage: check
tags: [ docker ] tags: [docker]
allow_failure: true allow_failure: true
image: $WEB_IMAGE image: $WEB_IMAGE
needs: [meta, ci_images, "build docs"] needs: [meta, ci_images, "build docs"]
extends: extends:
- .rules-master-manual - .rules-master-manual
script: script:
- cd build - cd build
- > - >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment