PSCredentialStore/appveyor.yml

81 lines
2.3 KiB
YAML
Raw Normal View History

2019-01-16 13:18:27 +01:00
# pre release version:
version: 1.0.{build}
2020-06-04 14:38:16 +02:00
cache:
#branches:
# only:
# - master
# - dev
# - debug
skip_tags: true
2020-10-01 14:26:51 +02:00
image: Visual Studio 2019
# Install pester module and init the Appveyor support.
# Enable RDP connection for debugging
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- ps: Import-Module .\tools\AppVeyor.psm1
2018-03-21 12:16:09 +01:00
- ps: Invoke-InstallDependencies
environment:
NuGetToken:
secure: 835qfZIkC9mE7QhkYfOZVAdR8rZhPvxG8BO4CbeaelRQOhlqmaSr8G1DWRJzZ/bS
CoverallsToken:
secure: eTjWqHL48MBr8wp1rSgLrXHdtpfDV/uClacP3svlWJfCvn/zVokpuaMnWM5RoyIY
2020-06-04 09:23:55 +02:00
CodeCovToken:
secure: LJOvamWIlVORDE7120KcmWVkHxOFYBSN99linyICXXmXLtYm81K/31YeMGiPlgTm
build: false
before_build:
- ps: Invoke-AppVeyorBumpVersion
build_script:
- ps: Invoke-AppVeyorBuild
test_script:
2020-06-04 14:38:16 +02:00
- ps: |
$CodeCoverage = Invoke-AppVeyorTests
if ($null -ne $Env:CoverallsToken) {
Invoke-CoverageReport -PesterCoverageReport $CodeCoverage
}
else {
Write-Warning "No CoverallsToken found. This build seems to be triggered by a PR. Skipping this step..."
}
2020-10-01 14:09:16 +02:00
if ($null -ne $Env:CodeCovToken) {
2020-10-01 14:06:51 +02:00
Invoke-CodeCove
}
else {
Write-Warning "No CodeCovToken found. This build seems to be triggered by a PR. Skipping this step..."
}
deploy:
#- provider: GitHub
# auth_token:
# secure: M+bBX5/nKdJB0eViP7xtrLVTwf3vGDUA9N2MMprZp2i+9ZR3CBVcJnSzJWUmalhB
# artifact: PSCredentialStore.zip # upload all NuGet packages to release assets
# draft: true
# prerelease: true
# on:
# branch: dev
2017-12-22 08:10:37 +01:00
- provider: GitHub
auth_token:
secure: M+bBX5/nKdJB0eViP7xtrLVTwf3vGDUA9N2MMprZp2i+9ZR3CBVcJnSzJWUmalhB
2020-06-04 09:23:55 +02:00
artifact: PSCredentialStore.zip # upload all NuGet packages to release assets
2017-12-22 08:10:37 +01:00
draft: false
prerelease: false
2017-12-22 08:10:37 +01:00
on:
2020-06-04 09:23:55 +02:00
branch: master # build release on master branch changes
after_deploy:
2017-12-22 08:10:37 +01:00
- ps: Invoke-AppVeyorPSGallery -OnBranch 'master'
# Pause build until `lock` on desktop is deleted.
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))