Skip to content

Commit ec86a05

Browse files
committed
buildfile lint
1 parent 038446a commit ec86a05

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

buildfile.m

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ function legacyMexTask(context)
4444
end
4545

4646

47-
function testTask(~)
48-
t = fileparts(mfilename("fullpath"));
49-
addpath(t)
47+
function testTask(context)
48+
49+
addpath(context.Plan.RootFolder)
5050

5151
r = runtests("test", ...
5252
IncludeSubfolders=true, ...
@@ -59,16 +59,15 @@ function testTask(~)
5959
end
6060

6161

62-
function coverageTask(~)
63-
cwd = fileparts(mfilename('fullpath'));
62+
function coverageTask(context)
6463

65-
coverage_run("stdlib", fullfile(cwd, "test"))
64+
coverage_run("stdlib", fullfile(context.Plan.RootFolder, "test"))
6665
end
6766

6867

69-
function publishTask(~)
70-
cwd = fileparts(mfilename('fullpath'));
71-
outdir = fullfile(cwd, "docs");
68+
function publishTask(context)
69+
70+
outdir = fullfile(context.Plan.RootFolder, "docs");
7271

7372
publish_gen_index_html("stdlib", ...
7473
"A standard library of functions for Matlab.", ...

private/publish_gen_index_html.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function publish_gen_index_html(pkg_name, tagline, project_url, outdir)
4343

4444
s = sub{1};
4545
[~, name] = fileparts(s);
46+
4647
doc_fn = publish(pkg_name + "." + name, evalCode=false, outputDir=outdir);
4748
disp(doc_fn)
4849

0 commit comments

Comments
 (0)