Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
15ebfd74
Commit
15ebfd74
authored
May 18, 2016
by
Max Lyon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into v2beta
parents
b7e9c00e
ac1aaae7
Pipeline
#1924
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
.gitlab-ci.yml
.gitlab-ci.yml
+9
-0
CI/ci-cppcheck.sh
CI/ci-cppcheck.sh
+50
-0
No files found.
.gitlab-ci.yml
View file @
15ebfd74
...
...
@@ -27,3 +27,12 @@ macos-c++98:
script
:
"
CI/ci-mac.sh
C++98"
tags
:
-
Apple
cppcheck
:
script
:
"
CI/ci-cppcheck.sh"
tags
:
-
Linux
artifacts
:
paths
:
-
cppcheck.log
CI/ci-cppcheck.sh
0 → 100755
View file @
15ebfd74
#!/bin/bash
# Exit script on any error
set
-e
#=====================================
# Color Settings:
#=====================================
NC
=
'\033[0m'
OUTPUT
=
'\033[0;32m'
WARNING
=
'\033[0;93m'
echo
-e
"
${
OUTPUT
}
"
echo
"=============================================================================="
echo
"Running cppcheck"
echo
"=============================================================================="
echo
-e
"
${
NC
}
"
echo
"Please Wait ..."
# Run cppcheck and output into file
cppcheck
--enable
=
all
.
-I
src
-i
Doc/
--force
--suppress
=
unusedFunction
--suppress
=
missingIncludeSystem
--quiet
-Umin
-Umax
-UBMPOSTFIX
-DOPENVOLUMEMESHDLLEXPORT
=
""
&> cppcheck.log
echo
-e
"
${
OUTPUT
}
"
echo
"=============================================================================="
echo
"CPPCHECK Messages"
echo
"=============================================================================="
echo
-e
"
${
NC
}
"
# Echo output to command line for simple analysis via gitlab
cat
cppcheck.log
COUNT
=
$(
wc
-l
< cppcheck.log
)
echo
-e
"
${
OUTPUT
}
"
echo
"=============================================================================="
echo
"CPPCHECK Summary"
echo
"=============================================================================="
echo
-e
"
${
NC
}
"
if
[
$COUNT
-gt
0
]
;
then
echo
-e
${
WARNING
}
echo
"Total CPPCHECK error Count is
$COUNT
, which is too High! CPPCHECK Run failed"
;
echo
-e
"
${
NC
}
"
exit
1
;
else
echo
"Total CPPCHECK error Count is
$COUNT
... OK"
fi
Write
Preview
Markdown
is supported
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