forked from acampbel/Mass-Spring-Damper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildfile.m
33 lines (22 loc) · 943 Bytes
/
buildfile.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function plan = buildfile
import matlab.buildtool.tasks.*
% import matlabtest.plugins.codecoverage.StandaloneReport
% import matlab.unittest.plugins.codecoverage.CoberturaFormat
plan = buildplan(localfunctions);
plan("clean") = CleanTask;
plan("check") = CodeIssuesTask;
% plan("test") = TestTask(SourceFiles="toolbox").addCodeCoverage([StandaloneReport("mystandalonereport.html") CoberturaFormat("cov.xml")]);
plan("test") = TestTask;
plan("test").Dependencies = ["setup" "mex" "pcode"];
% plan("mex") = MexTask.forEachFile("mex\*.c", "toolbox");
plan("mex") = MexTask("mex/convec.c", "toolbox");
plan("pcode") = PcodeTask("pcode", "toolbox");
% plan("toolbox") = ToolboxTask.fromToolboxProject("Mass-Spring-Damper.prj");
% plan("toolbox").Dependencies = ["check" "test"];
% plan.DefaultTasks = "toolbox";
plan.DefaultTasks = ["check" "test"];
end
function setupTask(~)
addpath("toolbox");
addpath(fullfile("toolbox", "doc"));
end