Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuhao Liu
ogs
Commits
364b1087
Verified
Commit
364b1087
authored
3 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Lizard thresholds.
parent
5170b904
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/ci/jobs/build-docs.yml
+5
-5
5 additions, 5 deletions
scripts/ci/jobs/build-docs.yml
with
5 additions
and
5 deletions
scripts/ci/jobs/build-docs.yml
+
5
−
5
View file @
364b1087
...
@@ -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
-
>
-
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment