Skip to content

Commit

Permalink
Build - Bug Fix #74. Rename Get-WinSCPSshHostKeyFingerprint to Get-Wi…
Browse files Browse the repository at this point in the history
…nSCPHostKeyFingerprint.
  • Loading branch information
dotps1 committed Apr 2, 2018
1 parent 0af2eb1 commit eaaf2ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Invoke-AppVeyorBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ try {
$timestamp = Get-Date -uformat "%Y%m%d-%H%M%S"
$resultsFile = "Results_${timestamp}.xml"

Import-Module -Name .\$env:APPVEYOR_PROJECT_NAME -Force -ErrorAction Stop
Import-Module -Name ".\${env:APPVEYOR_PROJECT_NAME}" -Force -ErrorAction Stop

Invoke-Pester -Path ".\Tests" -OutputFormat NUnitXml -OutputFile ".\$resultsFile" -PassThru -ErrorAction Stop |
Export-Clixml -Path ".\Pester$resultsFile"
Invoke-Pester -Path ".\Tests" -OutputFormat NUnitXml -OutputFile ".\${resultsFile}" -PassThru -ErrorAction Stop |
Export-Clixml -Path ".\Pester${resultsFile}"

(New-Object -TypeName System.Net.WebClient).UploadFile(
"https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path -Path ".\$resultsFile")
"https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path -Path ".\${resultsFile}")
)

[Int]$failures = Import-Clixml -Path ".\Pester$resultsFile" -ErrorAction Stop |
[Int]$failures = Import-Clixml -Path ".\Pester${resultsFile}" -ErrorAction Stop |
Select-Object -ExpandProperty FailedCount |
Measure-Object -Sum |
Select-Object -ExpandProperty Sum
Expand All @@ -27,7 +27,7 @@ try {
Update-Metadata -Path ".\${env:APPVEYOR_PROJECT_NAME}\${env:APPVEYOR_PROJECT_NAME}.psd1" -PropertyName ModuleVersion -Value $env:APPVEYOR_BUILD_VERSION -ErrorAction Stop
Update-Metadata -Path ".\${env:APPVEYOR_PROJECT_NAME}\${env:APPVEYOR_PROJECT_NAME}.psd1" -PropertyName ReleaseNotes -Value $env:APPVEYOR_REPO_COMMIT_MESSAGE -ErrorAction Stop
# Publish to the PowerShell Gallery if the build is successful.
Publish-Module -Path .\$env:APPVEYOR_PROJECT_NAME -NuGetApiKey $env:POWERSHELL_GALLERY_API_TOKEN -Verbose -ErrorAction Stop
Publish-Module -Path ".\${env:APPVEYOR_PROJECT_NAME}" -NuGetApiKey $env:POWERSHELL_GALLERY_API_TOKEN -Verbose -ErrorAction Stop
}
} catch {
throw $_
Expand Down

0 comments on commit eaaf2ca

Please sign in to comment.