-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
40 lines (39 loc) · 1.72 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
29
30
31
32
33
34
35
36
37
38
39
40
#
# Torizon OTA
# This API is rate limited and will return the following headers for each API call. - X-RateLimit-Limit - The total number of requests allowed within a time period - X-RateLimit-Remaining - The total number of requests still allowed until the end of the rate limiting period - X-RateLimit-Reset - The number of seconds until the limit is fully reset In addition, if an API client is rate limited, it will receive a HTTP 420 response with the following header: - Retry-After - The number of seconds to wait until this request is allowed
# Version: 2.0-Beta
# Generated by OpenAPI Generator: https://openapi-generator.tech
#
version: 1.0.{build}
image:
- Visual Studio 2019 # PWSH 7.x
#- Visual Studio 2017 # PS 5.x, PWSH 6.x
#- Ubuntu # PWSH 6.x
# ref: https://www.appveyor.com/docs/windows-images-software/
install:
- pwsh: $PSVersionTable.PSVersion
- pwsh: Install-Module Pester -Force -Scope CurrentUser
build: off
test_script:
- pwsh: |
.\Build.ps1
Import-Module -Name '.\src\TorizonPlatformAPI'
$Result = Invoke-Pester -PassThru
if ($Result.FailedCount -gt 0) {
$host.SetShouldExit($Result.FailedCount)
exit $Result.FailedCount
}
deploy_script:
- pwsh: |
if ($env:APPVEYOR_REPO_TAG -eq $true -and $null -ne $env:NuGetApiKey) {
.\Build.ps1
try {
Publish-Module -NuGetApiKey $env:NuGetApiKey -Path .\src\TorizonPlatformAPI\ -Confirm:$False -Verbose
Write-Host "Successfully published the PowerShell module."
} catch {
$host.SetShouldExit($LastExitCode)
Write-Host "Error when running Publish-Module:"
Write-Host $_
exit
}
}