Build-Install-Pester.ps1
Write-Host "Starting Script ""Install-Pester.ps1""" -ForegroundColor Gray -BackgroundColor White $modulePath = Join-Path $($env:TEMP) Pester-master\Pester.psm1 Write-Host "Module directory for Pester module is ""$modulePath"""� if (-not(Test-Path $modulePath)) { � ����# Note: PSGet and chocolatey are not supported in hosted vsts build agent� ����$tempFile = Join-Path $($env:TEMP) pester.zip ����Write-Host "Download Pester to path ""$tempFile""" Invoke-WebRequest https://github.com/pester/Pester/archive/master.zip -OutFile $tempFile � ����[System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') | Out-Null ����Write-Host "Extract Pester to directory $($env:TEMP)" [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFile, $($env:TEMP)) � Write-Host "Remove file $tempFile" ����Remove-Item $tempFile } Write-Host "Finished Script ""Build-Install-Pester.ps1""" -ForegroundColor Gray -BackgroundColor White |