Files
Scoop/appveyor.yml
T
Richard Kuhnt 872517b898 Update tests to work with pester version 4.* (#1711)
* Remove custom choco options
* Use Install-Module to install Pester
2017-11-27 15:27:38 +01:00

17 lines
573 B
YAML

version: "{build}-{branch}"
branches:
except:
- gh-pages
init:
- ps: (get-psprovider 'FileSystem').Home = $(pwd)
- ps: Install-Module -Name Pester -Repository PSGallery -Force
build: off
test_script:
- ps: $result = invoke-pester -path test/ -outputfile TestResults.xml -outputformat NUnitXML -passthru; $env:failedcount = $result.failedcount
- ps: (new-object net.webclient).uploadfile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (resolve-path ./TestResults.xml))
- ps: if($env:failedcount -gt 0) { exit $env:failedcount }