Skip to content

Commit 410c157

Browse files
committed
Add -NoBuild flag.
1 parent 470658e commit 410c157

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Make.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ param (
3636
# Build, run tests, produce code coverage report.
3737
[Parameter(Mandatory, ParameterSetName="Coverage")]
3838
[switch] $Coverage
39+
,
40+
# Do not build before running tests.
41+
[Parameter(ParameterSetName="Test")]
42+
[Parameter(ParameterSetName="Coverage")]
43+
[switch] $NoBuild
3944
,
4045
# The configuration to build: Debug or Release. The default is Debug.
4146
[Parameter(ParameterSetName="Build")]
@@ -78,7 +83,9 @@ function Main {
7883
return
7984
}
8085

81-
Invoke-Build
86+
if (!$NoBuild) {
87+
Invoke-Build
88+
}
8289

8390
if ($Test -or $Coverage) {
8491
Invoke-Test

0 commit comments

Comments
 (0)