Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit 496a7a5

Browse files
committed
Fix repo root folder for integration tests
1 parent 811c04b commit 496a7a5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/build.cake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,19 @@ var target = Argument("target", "Default");
1717
public class BuildData
1818
{
1919
public DirectoryPath RepoRootFolder { get; }
20+
public DirectoryPath TestRootFolder { get; }
2021
public DirectoryPath SourceFolder { get; }
2122
public DirectoryPath DocsFolder { get; }
2223
public DirectoryPath OutputFolder { get; }
2324
public List<IIssue> Issues { get; }
2425

2526
public BuildData(ICakeContext context)
2627
{
27-
this.RepoRootFolder = context.MakeAbsolute(context.Directory("./"));
28-
this.SourceFolder = this.RepoRootFolder.Combine("src");
29-
this.DocsFolder = this.RepoRootFolder.Combine("docs");
30-
this.OutputFolder = this.RepoRootFolder.Combine("output");
28+
this.TestRootFolder = context.MakeAbsolute(context.Directory("./"));
29+
this.RepoRootFolder = this.TestRootFolder.Combine("..");
30+
this.SourceFolder = this.TestRootFolder.Combine("src");
31+
this.DocsFolder = this.TestRootFolder.Combine("docs");
32+
this.OutputFolder = this.TestRootFolder.Combine("output");
3133

3234
this.Issues = new List<IIssue>();
3335
}

tests/build/analyze/markdownlint.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Task("Lint-AddinDocumentation")
4343

4444
// Run markdownlint
4545
var settings =
46-
MarkdownlintNodeJsRunnerSettings.ForDirectory(data.RepoRootFolder.Combine("../docs"));
46+
MarkdownlintNodeJsRunnerSettings.ForDirectory(data.RepoRootFolder.Combine("docs"));
4747
settings.OutputFile = markdownLintLogFilePath;
4848
settings.ThrowOnIssue = false;
4949
RunMarkdownlintNodeJs(settings);

0 commit comments

Comments
 (0)