forked from pester/Pester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
27 lines (25 loc) · 1.21 KB
/
.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
26
27
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PSEdition: Core
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PSEdition: Desktop
- APPVEYOR_BUILD_WORKER_IMAGE: WMF 4
PSEdition: Desktop
skip_branch_with_pr: true
build: off
test_script:
- ps: |
if ( $env:PSEdition -eq 'Desktop' ) {
Set-StrictMode -Version Latest
$global:PesterDebugPreference_ShowFullErrors = $true
Import-Module ./Pester.psd1
Invoke-Pester -ExcludeTag VersionChecks, StyleRules, Help -EnableExit -OutputFile TestResults.xml -OutputFormat NUnitXml
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/${env:APPVEYOR_JOB_ID}", (Join-Path $PWD 'TestResults.xml')) }
- pwsh: |
if ( $env:PSEdition -eq 'Core' ) {
Set-StrictMode -Version Latest
$global:PesterDebugPreference_ShowFullErrors = $true
Import-Module ./Pester.psd1
Invoke-Pester -ExcludeTag VersionChecks, StyleRules, Help -EnableExit -OutputFile TestResults.xml -OutputFormat NUnitXml
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/${env:APPVEYOR_JOB_ID}", (Join-Path $PWD 'TestResults.xml')) }