diff --git a/Build/deploy.psdeploy.ps1 b/Build/deploy.psdeploy.ps1 index 0b39a8a..b43e8be 100644 --- a/Build/deploy.psdeploy.ps1 +++ b/Build/deploy.psdeploy.ps1 @@ -33,11 +33,11 @@ if ( $env:BHCommitMessage -match '!release' ) { - Compress-Archive -Path $env:BHModulePath -DestinationPath $env:BHProjectPath\$ModuleName-$env:ModuleVersion.zip - if (-Not (Test-Path -Path $env:BHProjectPath\$ModuleName-$env:ModuleVersion.zip)) { + Compress-Archive -Path $env:BHModulePath -DestinationPath $env:BHProjectPath\$env:ModuleName-$env:ModuleVersion.zip + if (-Not (Test-Path -Path $env:BHProjectPath\$env:ModuleName-$env:ModuleVersion.zip)) { Write-Error 'Failed to create archive for release' } - "Created release asset $env:BHProjectPath\$ModuleName-$env:ModuleVersion.zip" | + "Created release asset $env:BHProjectPath\$env:ModuleName-$env:ModuleVersion.zip" | Write-Host $ReleaseNotes = 'PLEASE FILL MANUALLY' @@ -56,7 +56,7 @@ if ( $_ } } - $ReleaseNotesSection += "See https://www.powershellgallery.com/packages/$ModuleName/$env:ModuleVersion" + $ReleaseNotesSection += "See https://www.powershellgallery.com/packages/$env:ModuleName/$env:ModuleVersion" $ReleaseNotesSection = $ReleaseNotesSection | Where-Object { $_ -notlike '# *' -and $_ -ne '' } if ($ReleaseNotesSection -is [array]) { $ReleaseNotes = $ReleaseNotesSection -join "`n" diff --git a/Build/psake.ps1 b/Build/psake.ps1 index f313695..2e11c12 100644 --- a/Build/psake.ps1 +++ b/Build/psake.ps1 @@ -10,7 +10,7 @@ if (-Not $PSModule) { Write-Error 'Did not find any module manifest' } - $ModuleName = $PSModule.Directory.BaseName + $env:ModuleName = $PSModule.Directory.BaseName $env:BHModulePath = $PSModule.Directory.FullName $TestFile = "TestResults_PS$PSVersion`_$TimeStamp.xml" Import-LocalizedData -BindingVariable Manifest -BaseDirectory $PSModule.Directory.FullName -FileName $PSModule.Name @@ -37,7 +37,7 @@ Task Test -Depends Init { if ($env:PSModulePath -notlike "$env:BHProjectPath;*") { $env:PSModulePath = "$env:BHProjectPath;$env:PSModulePath" } - $TestResults = Invoke-Pester -Path "$env:BHProjectPath\Tests" -PassThru -OutputFormat NUnitXml -OutputFile "$env:BHProjectPath\$TestFile" -CodeCoverage "$env:BHModulePath\$ModuleName.psm1" + $TestResults = Invoke-Pester -Path "$env:BHProjectPath\Tests" -PassThru -OutputFormat NUnitXml -OutputFile "$env:BHProjectPath\$TestFile" -CodeCoverage "$env:BHModulePath\$env:ModuleName.psm1" # In Appveyor? Upload our tests! #Abstract this into a function? if ($env:BHBuildSystem -eq 'AppVeyor') { diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 0f9f429..118c259 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -1,4 +1,4 @@ -# 1.1.111 +# 1.1.112 - Integrated updated scripts from PowerShell-CI - Fixed test for property