Skip to content

Commit 920a08a

Browse files
committed
made the build.ps1 skip the unit test with a switch
1 parent 0a2b2c4 commit 920a08a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ The build configuration to use.
2323
The docker ditro to use.
2424
.PARAMETER DockerDotnetVersion
2525
The dotnet version for docker to use.
26+
.PARAMETER SkipUnitTest
27+
Skip executing the tests.
2628
.PARAMETER Verbosity
2729
Specifies the amount of information to be displayed.
2830
.PARAMETER WhatIf
@@ -42,6 +44,7 @@ Param(
4244
[string]$Configuration = "Release",
4345
[string]$DockerDistro = "",
4446
[string]$DockerDotnetVersion = "",
47+
[switch]$SkipUnitTest,
4548
[ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")]
4649
[string]$Verbosity = "Verbose",
4750
[Alias("DryRun","Noop")]
@@ -194,6 +197,8 @@ else {
194197
# ###########################################################################
195198

196199
# Build the argument list.
200+
201+
$env:ENABLED_UNIT_TESTS = !$SkipUnitTest
197202
$Arguments = @{
198203
target=$Target;
199204
configuration=$Configuration;

0 commit comments

Comments
 (0)