Use --noprofile for Pester tests

This commit is contained in:
Andrew Schwartzmeyer
2016-02-01 13:12:29 -08:00
parent bbadc64407
commit ad064bf483
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ build_script:
test_script:
- ps: |
$testResultsFile = ".\TestsResults.xml"
.\bin\powershell.exe -c "Invoke-Pester test/powershell -OutputFormat NUnitXml -OutputFile $testResultsFile"
.\bin\powershell.exe --noprofile -c "Invoke-Pester test/powershell -OutputFormat NUnitXml -OutputFile $testResultsFile"
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $testResultsFile))
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
./bin/powershell -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit"
./bin/powershell --noprofile -c "Invoke-Pester test/powershell/$1 -OutputFile pester-tests.xml -OutputFormat NUnitXml -EnableExit"
failed_tests=$?
# XML files are not executable