Skip to content

Commit 8439274

Browse files
author
JustinGrote
committed
Fix Master to use Standard Logging
1 parent 97fb943 commit 8439274

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

PSModule.build.ps1

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,8 @@ Enter-Build {
5656
$Timestamp = Get-date -uformat "%Y%m%d-%H%M%S"
5757
$PSVersion = $PSVersionTable.PSVersion.Major
5858
Set-BuildEnvironment -force
59-
write-build Green "Current Branch Name: $BranchName"
6059

6160
$PassThruParams = @{}
62-
if ( ($VerbosePreference -ne 'SilentlyContinue') -or ($CI -and ($BranchName -ne 'master')) ) {
63-
write-build Green "Verbose Build Logging Enabled"
64-
$SCRIPT:VerbosePreference = "Continue"
65-
$PassThruParams.Verbose = $true
66-
}
6761

6862

6963
#If the branch name is master-test, run the build like we are in "master"
@@ -75,6 +69,12 @@ Enter-Build {
7569
}
7670
write-build Green "Current Branch Name: $BranchName"
7771

72+
if ( ($VerbosePreference -ne 'SilentlyContinue') -or ($CI -and ($BranchName -ne 'master')) ) {
73+
write-build Green "Verbose Build Logging Enabled"
74+
$SCRIPT:VerbosePreference = "Continue"
75+
$PassThruParams.Verbose = $true
76+
}
77+
7878
write-verboseheader "Build Environment Prepared! Environment Information:"
7979
Get-BuildEnvironment | format-list | out-string | write-verbose
8080

@@ -271,7 +271,6 @@ task UpdateMetadata CopyFilesToBuildDir,Version,{
271271
}
272272

273273

274-
275274
#Create an empty file in the root directory of the module for easy identification that its not a valid release.
276275
"This is a prerelease build and not meant for deployment!" > (Join-Path $ProjectBuildPath "PRERELEASE-$ProjectSemVersion")
277276
}

0 commit comments

Comments
 (0)