-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
28 lines (23 loc) · 1.35 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
28
version: 0.0.0.{build}
environment:
appveyor_test_acc_id:
secure: BFeOaEsaan4i2Kq91g5jEA==
appveyor_test_acc_key:
secure: XGygEaKHV6wawGjrchVNsgSnRjyNWkWIVaQuxOUepH/W9FFKbTBUWuBBBpZWf6sIRsvw++kn+P2mBlXpu4Zrv2A+0O4N07XDEGua8PLj+vg=
NuGetApiKey:
secure: eH/OCc5Zl3cDP6vfFSMdE+rgYHijh9fkWmldUDfX6qO6t+9QZNfneILG0/bsAdm1
install:
- ps: Install-Module -Name PSScriptAnalyzer -Force
- ps: Install-Module -Name Pester -Force
- pwsh: Install-Module -Name PSScriptAnalyzer -Force
- pwsh: Install-Module -Name Pester -Force
build: off
test_script:
- ps: $res = Invoke-Pester -Path ".\src\test" -OutputFormat NUnitXml -OutputFile TestsResults-Win.xml -PassThru
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults-Win.xml))
- ps: if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) Windows PowerShell tests failed."}
- pwsh: $res = Invoke-Pester -Path ".\src\test" -OutputFormat NUnitXml -OutputFile TestsResults-Core.xml -PassThru
- pwsh: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults-Core.xml))
- pwsh: if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) PowerShell Core tests failed."}
deploy_script:
- pwsh: ci/publish-module.ps1