File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
if isMATLABReleaseOlderThan(" R2025a" )
7
7
8
+ warning(" mag:buildtool:path" , " MATLAB release "" %s"" not supported for development purposes." + ...
9
+ " Adding all folders to the path for testing purposes." , matlabRelease().Release);
10
+
8
11
% Brute-force add all folders to the path.
9
- originalPath = addpath(genpath(plan .RootFolder ));
10
- restorePath = onCleanup(@() path(originalPath ));
12
+ addpath(genpath(plan .RootFolder ));
11
13
else
12
14
13
15
% Open package if not already open.
14
16
package = matlab .mpm .Package(plan .RootFolder );
15
17
16
18
if ~package .Installed
17
-
18
- originalPath = addpath(join(fullfile(plan .RootFolder , [package .Folders .Path ]), pathsep()));
19
- restorePath = onCleanup(@() path(originalPath ));
19
+ mpminstall(package , Authoring = true , Temporary = true , Prompt = false );
20
20
end
21
21
end
22
22
36
36
TestResults = fullfile(" artifacts/results.xml" ), ...
37
37
CodeCoverageResults = fullfile(" artifacts/coverage.xml" ));
38
38
39
+ if ~isMATLABReleaseOlderThan(" R2025a" )
40
+ plan(" test" ).RunOnlyImpactedTests = true ;
41
+ end
42
+
39
43
% Add the "package" task to create toolbox.
40
44
plan(" package" ) = mag .buildtool .task .PackageTask(Description = " Package code into toolbox" , ...
41
45
PackageRoot = plan .RootFolder , ...
You can’t perform that action at this time.
0 commit comments