forked from PowerShell/Microsoft.PowerShell.Archive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
22 lines (18 loc) · 795 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Image with WMF5.0 RTM
os: "WMF 5"
# clone directory
clone_folder: c:\projects\Archive-Module
# Install Pester
install:
- cinst -y pester
build: false
# Run Pester tests and store the results
test_script:
- ps: |
$testResultsFile = ".\ArchiveTestResults.xml"
Import-Module "C:\projects\Archive-Module\Microsoft.PowerShell.Archive" -Force
$testResults = Invoke-Pester -Script "C:\projects\Archive-Module\Tests" -OutputFormat NUnitXml -OutputFile $testResultsFile -PassThru
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $testResultsFile))
if ($testResults.FailedCount -gt 0) {
throw "$($testResults.FailedCount) tests failed."
}