forked from cake-build/cake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cake-buildGH-2685) Added Cake.DotNetTool.Module integration tests
- Loading branch information
1 parent
ac26508
commit fcb20dd
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
tests/integration/Cake.DotNetTool.Module/Cake.DotNetTool.Module.cake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#load "./../utilities/paths.cake" | ||
|
||
Task("Cake.DotNetTool.Module.Setup") | ||
.Does(() => | ||
{ | ||
var path = Paths.Temp.Combine("./Cake.DotNetTool.Module"); | ||
CleanDirectory(path); | ||
}); | ||
|
||
Task("Cake.DotNetTool.Module.Install") | ||
.IsDependentOn("Cake.DotNetTool.Module.Setup") | ||
.Does(() => | ||
{ | ||
// Given | ||
var scriptPath = Paths.Temp.Combine("./Cake.DotNetTool.Module/").CombineWithFilePath("build.cake"); | ||
var script = "#tool \"dotnet:?package=Octopus.DotNet.Cli&version=7.4.6\""; | ||
System.IO.File.WriteAllText(scriptPath.FullPath, script); | ||
// When | ||
CakeExecuteScript(scriptPath); | ||
}); | ||
|
||
Task("Cake.DotNetTool.Module.Update") | ||
.IsDependentOn("Cake.DotNetTool.Module.Install") | ||
.Does(() => | ||
{ | ||
// Given | ||
var scriptPath = Paths.Temp.Combine("./Cake.DotNetTool.Module/").CombineWithFilePath("build.cake"); | ||
var script = "#tool \"dotnet:?package=Octopus.DotNet.Cli&version=7.4.3121\""; | ||
System.IO.File.WriteAllText(scriptPath.FullPath, script); | ||
// When | ||
CakeExecuteScript(scriptPath); | ||
}); | ||
|
||
Task("Cake.DotNetTool.Module") | ||
.IsDependentOn("Cake.DotNetTool.Module.Setup") | ||
.IsDependentOn("Cake.DotNetTool.Module.Install") | ||
.IsDependentOn("Cake.DotNetTool.Module.Update"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters