Hauptinhalt

Build-Automatisierung

R2026b
Erstellen und Ausführen von Build-Tasks, wie beispielsweise das Erkennen von Codeproblemen, Ausführen von Tests und Erstellen von Paketen
Seit R2022b

Verwenden Sie das MATLAB®-Build-Tool, um den Build- und Testprozess für Ihr Projekt zu standardisieren. Mit dem MATLAB-Build-Tool können Sie:

  • Aufgaben mit einer standardisierten Schnittstelle festlegen, anzeigen und ausführen.

  • Abhängigkeiten festlegen, um Aufgaben in der beabsichtigten Reihenfolge auszuführen.

  • Redundante Aufgaben vermeiden, indem Sie nur die geänderten Elemente neu erstellen.

Informationen zum Einstieg finden Sie unter Overview of MATLAB Build Tool.

Zusätzliche Informationen zur Verwendung des MATLAB-Build-Tools im Rahmen der Software-Entwicklung finden Sie unter Develop and Share Software in MATLAB.

Funktionen

buildtoolInvoke build tool
buildplanCreate build plan

Klassen

alle erweitern

matlab.buildtool.PlanFundamental interface for defining a build
matlab.buildtool.PlanElementBase class for build plan elements (Seit R2026b)
matlab.buildtool.TaskSingle unit of work in a build
matlab.buildtool.TaskGroupGroup of tasks (Seit R2024b)
matlab.buildtool.TaskActionAction performed when task runs
matlab.buildtool.TaskContextContext provided when task runs
matlab.buildtool.BuildResultResult of running a build
matlab.buildtool.TaskResultResult of running a task
matlab.buildtool.diagnostics.TaskSkipReasonReason for skipping a task (Seit R2026a)
matlab.buildtool.TaskInputsContainer for task inputs (Seit R2023b)
matlab.buildtool.TaskOutputsContainer for task outputs (Seit R2023b)
matlab.buildtool.io.FileCollectionCollection of files and folders (Seit R2023a)
matlab.buildtool.io.FileSingle file or folder (Seit R2023b)
matlab.buildtool.io.GlobFile collection that matches pattern (Seit R2023b)
matlab.buildtool.tasks.CleanTaskTask for deleting outputs and traces (Seit R2023b)
matlab.buildtool.tasks.CodeIssuesTaskTask for identifying code issues (Seit R2023b)
matlab.buildtool.tasks.MexTaskTask for building MEX file (Seit R2024a)
matlab.buildtool.tasks.PackageTaskTask for building package from TOML project (Seit R2026b)
matlab.buildtool.tasks.PcodeTaskTask for creating P-code files (Seit R2024a)
matlab.buildtool.tasks.TestTaskTask for running tests (Seit R2023b)

Themen