-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
23 lines (17 loc) · 1.01 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
clone_folder: C:\RollingRestart
image: WMF 5
install:
- cinst pester
version: 0.0.{build}
build_script:
- ps: New-ModuleManifest -ModuleVersion $ENV:APPVEYOR_BUILD_VERSION -path .\RollingRestart.psd1 -Author 'Paul Kelly' -Company 'PK Services' -Description 'Restart independent servers in parallel and dependent servers in sequence.' -RootModule '.\RollingRestart.psm1' -FunctionsToExport 'Get-RRServer','Use-RollingRestart'
test_script:
- ps: $res = Invoke-Pester -Path ".\" -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
- ps: if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}
#deploy_script:
#- ps: Install-PackageProvider -Name NuGet -Force
#- ps: Publish-Module -NuGetApiKey $env:ApiKey -Path C:\RollingRestart
environment:
ApiKey:
secure: /V6TuIRTw9ocx/n4gpKpQBtpB2TFJuxH2IATPF9utNokoMF3rShoWCPlfInUx1TR