Skip to content

Commit a7559a6

Browse files
author
JustinGrote
committed
More random fixes
1 parent 487ce85 commit a7559a6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ task Package Version,{
324324

325325
#If we are in Appveyor, push completed zip to Appveyor Artifact
326326
if ($env:APPVEYOR) {
327-
write-host -ForegroundColor Green "Detected Appveyor, pushing Powershell Module archive to Artifacts"
327+
write-build Green "Detected Appveyor, pushing Powershell Module archive to Artifacts"
328328
Push-AppveyorArtifact $ZipArchivePath
329329
}
330330
}

Tests/00-PowershellModule.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ if (-not (import-module BuildHelpers -PassThru -erroraction silentlycontinue)) {
33
install-module buildhelpers -scope currentuser -erroraction stop -force
44
import-module BuildHelpers -erroraction stop
55
}
6-
6+
Set-BuildEnvironment -force
77
$PSVersion = $PSVersionTable.PSVersion.Major
88
$BuildOutputProject = Join-Path $env:BHBuildOutput $env:BHProjectName
9-
109
Describe 'Powershell Module' {
1110
$ModuleManifestPath = Join-Path $BuildOutputProject '\*.psd1'
1211
Context "$env:BHProjectName" {
@@ -67,8 +66,9 @@ Describe 'Powershell Module' {
6766
}
6867

6968
Describe 'PSScriptAnalyzer' {
70-
$results = Invoke-ScriptAnalyzer -Path $BuildOutputProject -Recurse -ExcludeRule "PSAvoidUsingCmdletAliases" -Verbose:$false
69+
$results = Invoke-ScriptAnalyzer -Path $BuildOutputProject -Recurse -ExcludeRule "PSAvoidUsingCmdletAliases","PSAvoidGlobalVars" -Verbose:$false
7170
It 'PSScriptAnalyzer returns zero errors for all files in the repository' {
71+
$results
7272
$results.Count | Should Be 0
7373
}
7474
}

0 commit comments

Comments
 (0)