Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
ECSS-E-ST-70-41C Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSAT
On-Board Computer
ECSS-E-ST-70-41C Services
Commits
743908c7
Verified
Commit
743908c7
authored
5 years ago
by
Konstantinos Kanavouras
Browse files
Options
Downloads
Patches
Plain Diff
Move removal of cppcheck .dump files after the completion of the script, to prevent file cluttering
parent
87e22779
No related branches found
No related tags found
1 merge request
!40
Fix the build
Pipeline
#75030413
passed
5 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/cppcheck-misra.sh
+5
-5
5 additions, 5 deletions
ci/cppcheck-misra.sh
with
5 additions
and
5 deletions
ci/cppcheck-misra.sh
+
5
−
5
View file @
743908c7
...
...
@@ -15,11 +15,6 @@ echo -e "\u001b[34;1mGetting prerequisites...\u001b[0m"
curl https://raw.githubusercontent.com/danmar/cppcheck/master/addons/misra.py
>
ci/misra.py
curl https://raw.githubusercontent.com/danmar/cppcheck/master/addons/cppcheckdata.py
>
ci/cppcheckdata.py
# clean up old files
echo
-e
"
\u
001b[34;1mRemoving old files...
\u
001b[0m"
echo
>
ci/report.msr
# clear the report file
find inc/ src/
-type
f
-name
"*.dump"
| xargs
rm
# generate dump files (XML representations of AST etc.) for all headers, source files etc.
echo
-e
"
\u
001b[34;1mGenerating dump files...
\u
001b[0m"
find inc/ src/
-type
f
\(
-iname
"*.cpp"
-or
-iname
"*.hpp"
\)
| xargs cppcheck
--dump
...
...
@@ -36,3 +31,8 @@ sed -i -r 's/(.*Script.*)|(.*Checking.*)|(.*MISRA.*)|(.*Undefined: .*)|(.* \(-\)
echo
-e
"
\u
001b[34;1mSummarizing results...
\u
001b[0m"
python3 ci/summarizer.py
--report
ci/report.msr
--suppress
3.1 5.1 5.2 5.3 12.3 13.4 14.4 15.5 16.3 18.4 18.8
# clean up old files
echo
-e
"
\u
001b[34;1mRemoving dump files...
\u
001b[0m"
echo
>
ci/report.msr
# clear the report file
find inc/ src/
-type
f
-name
"*.dump"
| xargs
rm
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