Skip to content

Commit

Permalink
fixed buildfile.m to run with the new FSDA toolbox structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
AldoCorbelliniUNIPR committed Dec 12, 2023
1 parent 1b14256 commit 6b5e958
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions buildfile.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
plan = buildplan(localfunctions);

% Build doc before packaging toolbox as it is needed in the toolbox
% removed for testing !!!!!
plan("toolbox").Dependencies = "doc";

% Make the "toolbox" task the default task in the plan
Expand All @@ -22,26 +23,28 @@ function testTask(~, cat2test, options)
cat2test char = getenv('CATEGORY_TO_TEST')
options.Performance (1,1) logical = false
end
cd toolbox
runAllMyTestsFS(cat2test, Performance=options.Performance)
end

function docTask(context)
% This task builds the doc search DB for the current version of MATLAB - the
% expected output will be in the folder ./helpfiles/pointersHTML
cleanup = iCdWithRevert(fullfile(context.Plan.RootFolder, "utilities_help", "build")); %#ok<NASGU>
cleanup = iCdWithRevert(fullfile(context.Plan.RootFolder, "toolbox", "utilities_help", "build")); %#ok<NASGU>
buildDocSearchForToolbox
end

function toolboxTask(context)
% This task packages the toolbox MLTBX file - the expected output will be
% in the ./bin/ folder (defined in the createMLTBX file)
cleanup = iCdWithRevert(fullfile(context.Plan.RootFolder, "utilities_help", "build")); %#ok<NASGU>
cleanup = iCdWithRevert(fullfile(context.Plan.RootFolder, "toolbox", "utilities_help", "build")); %#ok<NASGU>
createMLTBX
end

function releaseToGithubTask(~, opts)
% This task tags a new release and builds the toolbox MLTBX file -on GitHub-
% This task uses createMLTBX.m and GiHub Actions
% e.g. buildtool releaseToGithub(Version="1.1.22",Comment="do not use just a test")
arguments
~
opts.Version(1,1) string = ""
Expand Down

0 comments on commit 6b5e958

Please sign in to comment.