How to fail on compilation errors when running Polyspace Bug Finder in CI?

6 ビュー (過去 30 日間)
Peter Bauer
Peter Bauer 2021 年 6 月 10 日
回答済み: Peter Bauer 2021 年 6 月 10 日
We found that our CI (using the polyspace-configure and polyspace-bug-finder commands) has not detected some issues so we ran the analysis locally in the GUI app and found that a compilation error was shown in the output.
The errors are written to the analysis .log file and it is mentioned in the report that the compilation for the files failed but i would have expected that the "polyspace-bug-finder" execution would exit with !=0 or that this treated as a dedicated defect in such cases as this renders the analysis results useless.
So my question is: how to automatically detect such compilation errors when using the commandline apps?

採用された回答

Peter Bauer
Peter Bauer 2021 年 6 月 10 日
sorry for the noise, found -stop-if-compile-error: https://de.mathworks.com/help/bugfinder/ref/stopanalysisifafiledoesnotcompilestopifcompileerror.html

その他の回答 (0 件)

タグ

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by