We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ec257 commit 1fe6e51Copy full SHA for 1fe6e51
.travis.yml
@@ -21,7 +21,17 @@ script:
21
- cp cfe/cmake/Makefile.sample Makefile
22
- cp -r cfe/cmake/sample_defs sample_defs
23
# Static code analysis
24
- - cppcheck --force --inline-suppr .
+ # Below is intent but fails - exit code bug in cppcheck 1.82
25
+ # - cppcheck --force --inline-suppr --quiet --error-exitcode=1 .
26
+ # Work around script:
27
+ - cppcheck --force --inline-suppr --quiet . 2> cppcheck_err.txt
28
+ - |
29
+ if [[ -s cppcheck_err.txt ]]; then
30
+ echo "You must fix cppcheck errors before submitting a pull request"
31
+ echo ""
32
+ cat cppcheck_err.txt
33
+ exit -1
34
+ fi
35
# Prep and build
36
- make prep
37
- make
0 commit comments