From eaaf2ca7926a713a4957db6bd1f17d958098d210 Mon Sep 17 00:00:00 2001 From: Thomas Malkewitz Date: Mon, 2 Apr 2018 11:12:12 -0400 Subject: [PATCH] Build - Bug Fix #74. Rename Get-WinSCPSshHostKeyFingerprint to Get-WinSCPHostKeyFingerprint. --- Invoke-AppVeyorBuild.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Invoke-AppVeyorBuild.ps1 b/Invoke-AppVeyorBuild.ps1 index 5fa3485..82d6dea 100644 --- a/Invoke-AppVeyorBuild.ps1 +++ b/Invoke-AppVeyorBuild.ps1 @@ -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 @@ -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 $_