Skip to content

Commit

Permalink
(build) move integration scripts and integration code
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Jun 10, 2020
1 parent b4b11e2 commit 58492a9
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ src/Docker/**/content
config.wyam.dll
config.wyam.hash
config.wyam.packages.xml
/test/core/build
/test/full/build
/tests/integration/core/build
/tests/integration/full/build
10 changes: 5 additions & 5 deletions build/artifacts-test.cake
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Task("Artifacts-MsBuildCore-Test")
continue;
}
var cmd = $"-file {rootPrefix}/scripts/Test-MsBuildCore.ps1 -version {version} -repoPath {rootPrefix}/repo/test/core -nugetPath {rootPrefix}/nuget -targetframework {targetframework}";
var cmd = $"-file {rootPrefix}/scripts/Test-MsBuildCore.ps1 -version {version} -repoPath {rootPrefix}/repo/tests/integration/core -nugetPath {rootPrefix}/nuget -targetframework {targetframework}";
DockerTestArtifact(dockerImage, parameters, cmd);
}
Expand All @@ -141,7 +141,7 @@ Task("Artifacts-MsBuildFull-Test")
dotnetCoreMsBuildSettings.WithProperty("TargetFramework", framework);
dotnetCoreMsBuildSettings.WithProperty("GitVersionTaskVersion", version);
var projPath = MakeAbsolute(new DirectoryPath("./test/core"));
var projPath = MakeAbsolute(new DirectoryPath("./tests/integration/core"));
DotNetCoreBuild(projPath.FullPath, new DotNetCoreBuildSettings
{
Expand All @@ -151,7 +151,7 @@ Task("Artifacts-MsBuildFull-Test")
ArgumentCustomization = args => args.Append($"--source {nugetSource}")
});
var netcoreExe = new DirectoryPath("./test/core/build").Combine(framework).CombineWithFilePath("app.dll");
var netcoreExe = new DirectoryPath("./tests/integration/core/build").Combine(framework).CombineWithFilePath("app.dll");
ValidateOutput("dotnet", netcoreExe.FullPath, parameters.Version.GitVersion.FullSemVer);
}
Expand All @@ -166,9 +166,9 @@ Task("Artifacts-MsBuildFull-Test")
msBuildSettings.WithProperty("GitVersionTaskVersion", version);
msBuildSettings.WithProperty("RestoreSource", nugetSource);
MSBuild("./test/full", msBuildSettings);
MSBuild("./tests/integration/full", msBuildSettings);
var fullExe = new DirectoryPath("./test/full/build").CombineWithFilePath("app.exe");
var fullExe = new DirectoryPath("./tests/integration/full/build").CombineWithFilePath("app.exe");
ValidateOutput(fullExe.FullPath, null, parameters.Version.GitVersion.FullSemVer);
});

Expand Down
2 changes: 1 addition & 1 deletion build/utils/docker.cake
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ DockerContainerRunSettings GetDockerRunSettings(BuildParameters parameters)
Volume = new[]
{
$"{currentDir}:{root}/repo",
$"{currentDir}/test-scripts:{root}/scripts",
$"{currentDir}/tests/scripts:{root}/scripts",
$"{currentDir}/artifacts/v{parameters.Version.SemVersion}/nuget:{root}/nuget",
$"{currentDir}/artifacts/v{parameters.Version.SemVersion}/native/linux:{root}/native",
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 58492a9

Please sign in to comment.