持续集成
R2026b运行 Code Prover Server,以在 CI 服务器上进行自动代码检查
您可以将用 Polyspace® Code Prover™ Server™ 检查代码作为代码提交后的检查过程的一部分。设置脚本,以按固定间隔或基于新代码提交运行 Code Prover 分析。这些脚本可以上传分析结果,以便在 Polyspace Access™ Web 界面中审查,还可向源文件的所有者发送 Polyspace 检查结果。

系统命令
polyspace-access (Polyspace Access) | |
polyspace-autosar | (System Command) Run Polyspace Code Prover on code implementation of AUTOSAR software components |
polyspace-cluster-profile-manager | (System Command) Import MATLAB cluster profile to Polyspace Server commands |
polyspace-code-prover-server | (系统命令)在服务器端从 Windows、Linux 或其他命令行运行 Code Prover 验证 |
polyspace-comments-import | (System Command) Import review information from previous Polyspace analysis |
polyspace-configure | (System Command) Create Polyspace Platform project, workspace, or options file from build command or compilation database |
polyspace-project -generate-launching-script-for | (System Command) Generate files needed to run static analysis on a Polyspace Platform project |
polyspace-report-generator | (系统命令)从本地存储或 Polyspace Access 上存储的 Polyspace 分析结果生成报告 |
polyspace-results-export | (System Command) Export Polyspace results to external formats such as CSV or JSON |
MATLAB API
主题
对源文件运行分析
- 在服务器端运行 Polyspace Code Prover 并上传结果以便在 Web 端审查
在提交后检查代码中是否存在运行时错误,并上传结果以便在 Web 界面中审查。 - 发送包含 Polyspace Code Prover Server 结果的电子邮件通知
向开发人员发送电子邮件并在附件中包含指向 Polyspace 结果的链接。
对 Polyspace 平台工程运行分析
- Generate Launching Script for Polyspace Platform Project to Run Static Analysis from Command Line
Run static analysis on a Polyspace Platform project from the command line.
使用 MATLAB 或 MATLAB Parallel Server 运行分析
- 将 Polyspace Server 产品与 MATLAB 集成
运行安装后步骤,将 Polyspace 和 MATLAB® (Simulink®) 安装链接起来。 - Offload Polyspace Analysis from Continuous Integration Server to Another Server
Send analysis to dedicated server, download results after analysis and then upload to Polyspace Access for review.
将结果上传到 Polyspace Access
- 工程管理 (Polyspace Access)
整理工程,管理权限,以及跨分析运行跟踪代码质量趋势 - 审查 Code Prover 结果 (Polyspace Access)
解释 Polyspace Code Prover 结果,追溯结果至根本原因,以及添加审查信息
在服务器端配置分析
- 从使用联编文件的编译创建 Polyspace 平台工程
将联编文件中的编译信息重用于 Polyspace 分析和测试。
与 CI 工具集成
- 使用 Jenkins 进行 Polyspace 分析的示例脚本
利用支持 Jenkins® 插件的示例脚本编写 Polyspace 运行脚本可以事半功倍。 - 用于 Polyspace 分析的 Jenkins Pipeline 脚本示例
将 Polyspace 分析安排为 Jenkins Pipeline 的一部分。