diff --git a/build.cake b/build.cake index e988060e..12fcbdd0 100644 --- a/build.cake +++ b/build.cake @@ -102,17 +102,10 @@ Task("Version") } }); -Task("Restore") +Task("Compile") .IsDependentOn("Clean") .IsDependentOn("Version") .Does(() => - { - DotNetCoreRestore(slnFile); - }); - -Task("Compile") - .IsDependentOn("Restore") - .Does(() => { var settings = new DotNetCoreBuildSettings { @@ -199,6 +192,9 @@ Task("RunAcceptanceTests") var settings = new DotNetCoreTestSettings { Configuration = compileConfig, + ArgumentCustomization = args => args + .Append("--no-restore") + .Append("--no-build") }; EnsureDirectoryExists(artifactsForAcceptanceTestsDir); @@ -212,6 +208,9 @@ Task("RunIntegrationTests") var settings = new DotNetCoreTestSettings { Configuration = compileConfig, + ArgumentCustomization = args => args + .Append("--no-restore") + .Append("--no-build") }; EnsureDirectoryExists(artifactsForIntegrationTestsDir); @@ -474,4 +473,4 @@ private bool ShouldPublishToUnstableFeed(string filter, string branchName) Information("Branch " + branchName + " will not be published to the unstable feed"); } return publish; -} \ No newline at end of file +}