Skip to content

Commit

Permalink
Add flag to disable unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kenelin committed Jul 1, 2019
1 parent 6bc29ec commit 79a205d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
var configuration = Argument("configuration", "Debug");
var revision = EnvironmentVariable("BUILD_NUMBER") ?? Argument("revision", "9999");
var target = Argument("target", "Default");
var unitTesting = EnvironmentVariable("UNIT_TESTING") ?? "ON";


//////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -168,6 +169,7 @@ Task("Build-Assemblies")
});

Task("Prepare-Unit-Test-Data")
.WithCriteria(() => "ON".Equals(unitTesting))
.IsDependentOn("Build-Assemblies")
.Does(() =>
{
Expand All @@ -182,6 +184,7 @@ Task("Prepare-Unit-Test-Data")
});

Task("Run-Unit-Tests-Under-AnyCPU")
.WithCriteria(() => "ON".Equals(unitTesting))
.IsDependentOn("Prepare-Unit-Test-Data")
.Does(() =>
{
Expand Down Expand Up @@ -257,6 +260,7 @@ Task("Run-Unit-Tests-Under-AnyCPU")
});

Task("Run-Unit-Tests-Under-X86")
.WithCriteria(() => "ON".Equals(unitTesting))
.IsDependentOn("Run-Unit-Tests-Under-AnyCPU")
.Does(() =>
{
Expand Down

0 comments on commit 79a205d

Please sign in to comment.