Skip to content

Commit 94cf3ab

Browse files
author
Jake Ginnivan
committed
Allow running just tests or build from command line
1 parent c08a743 commit 94cf3ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.cake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ void Build(string configuration, string nugetVersion, string semVersion, string
4747
}
4848
}
4949

50+
// This build task can be run to just build
5051
Task("DogfoodBuild")
5152
.IsDependentOn("NuGet-Package-Restore")
5253
.Does(() =>
@@ -92,7 +93,7 @@ Task("Build")
9293
});
9394

9495
Task("Run-NUnit-Tests")
95-
.IsDependentOn("Build")
96+
.IsDependentOn("DogfoodBuild")
9697
.Does(() =>
9798
{
9899
var settings = new NUnit3Settings();
@@ -113,6 +114,7 @@ Task("Run-NUnit-Tests")
113114
});
114115

115116
Task("Zip-Files")
117+
.IsDependentOn("Build")
116118
.IsDependentOn("Run-NUnit-Tests")
117119
.Does(() =>
118120
{

0 commit comments

Comments
 (0)