-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathappveyor.yml
25 lines (20 loc) · 905 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
23
24
25
---
image: Visual Studio 2017
version: 1.4.1.{build}
install:
- git clone https://github.com/PowerShell/DscResource.Tests
- ps: |
Install-PackageProvider -Name NuGet -Force -Verbose
Install-Module -Repository PSGallery -Name Pester -RequiredVersion 4.4.2 -Force -SkipPublisherCheck -Verbose
build: false
test_script:
- ps: |
$testResultsFilePath = Join-Path -Path $PWD -ChildPath 'TestsResults.xml'
Push-Location
Set-Location -Path '.\Tests'
$testResults = Invoke-Pester -OutputFormat NUnitXml -OutputFile $testResultsFilePath -PassThru
Pop-Location
$jobUrl = "https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)"
$webClient = New-Object -TypeName System.Net.WebClient
$webClient.UploadFile($jobUrl, $testResultsFilePath)
if ($testResults.FailedCount -gt 0) {throw "$($testResults.FailedCount) tests failed."}