-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (40 loc) · 1.24 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
41
#
# Lethean Binary API
# Functionality to simplify using LTHN
# Version: 1.2.2
# Contact: [email protected]
# 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\letheanSDP'
$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\letheanSDP\ -Confirm:$False -Verbose
Write-Host "Successfully published the PowerShell module."
} catch {
$host.SetShouldExit($LastExitCode)
Write-Host "Error when running Publish-Module:"
Write-Host $_
exit
}
}