Update appveyor.yml to import pester from the new location

This commit is contained in:
Sergei Vorobev 2016-02-10 13:25:35 -08:00
parent f3f0886e75
commit 512c37431d

View File

@ -36,7 +36,7 @@ test_script:
# FullCLR # FullCLR
Import-Module .\PowerShellGithubDev.psm1 Import-Module .\PowerShellGithubDev.psm1
$testResultsFile = ".\TestsResults.FullCLR.xml" $testResultsFile = ".\TestsResults.FullCLR.xml"
Start-DevPSGithub -binDir $pwd\binFull -NoNewWindow -ArgumentList '-command', "Import-Module .\test\Pester; Invoke-Pester test/fullCLR -OutputFormat NUnitXml -OutputFile $testResultsFile" Start-DevPSGithub -binDir $pwd\binFull -NoNewWindow -ArgumentList '-command', "Import-Module .\src\Microsoft.PowerShell.Linux.Host\Modules\Pester; Invoke-Pester test/fullCLR -OutputFormat NUnitXml -OutputFile $testResultsFile"
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $testResultsFile)) (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $testResultsFile))
# we want to fail the build, if these tests failed # we want to fail the build, if these tests failed
$x = [xml](cat -raw .\TestsResults.FullCLR.xml) $x = [xml](cat -raw .\TestsResults.FullCLR.xml)