codechecker-buildbot.sh: Don't fail if a static analysis issue is reported.

This commit is contained in:
Ryan C. Gordon 2021-08-27 01:03:14 -04:00
parent a6b45fa7cf
commit a47f59bbe5
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 6 additions and 0 deletions

View File

@ -31,7 +31,13 @@ perl -w -pi -e 's/\-arch\s+.*?\s+//g;' compile_commands.json
rm -rf ../analysis
CodeChecker analyze compile_commands.json -o ./reports
# "parse" returns 2 if there was a static analysis issue to report, but this
# does not signify an error in the parsing (that would be error code 1). Turn
# off the abort-on-error flag.
set +e
CodeChecker parse ./reports -e html -o ../analysis
set -e
cd ..
chmod -R a+r analysis