Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
e19052fe
Commit
e19052fe
authored
May 10, 2016
by
Jan Möbius
Browse files
Run cppcheck via gitlab
parent
161d6fe5
Pipeline
#1668
failed with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e19052fe
...
...
@@ -27,3 +27,8 @@ macos-c++98:
script
:
"
CI/ci-mac.sh
C++98"
tags
:
-
Apple
cppcheck
:
script
:
"
CI/ci-cppcheck.sh"
tags
:
-
Linux
CI/ci-cppcheck.sh
0 → 100755
View file @
e19052fe
#!/bin/bash
# Run cppcheck and output into file
cppcheck
--enable
=
all
.
-I
src
-i
Doc/
--force
--suppress
=
unusedFunction
--quiet
vi src/OpenMesh/Tools/Utils/Timer.hh
-Umin
-Umax
-UBMPOSTFIX
-DOPENMESHDLLEXPORT
=
""
&> cppcheck.log
# Echo output to command line for simple analysis via gitlab
cat
cppcheck.log
COUNT
=
$(
wc
-l
< cppcheck.log
)
if
[
$COUNT
-gt
1
]
;
then
echo
"Error Count is
$COUNT
which is too High! CPPCHECK Run failed"
;
exit
1
;
else
echo
"Error Count is
$COUNT
... OK"
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment