2019-01-16 13:18:27 +01:00
|
|
|
# release version:
|
|
|
|
#version: 0.5.0.{build}
|
|
|
|
|
|
|
|
# pre release version:
|
|
|
|
version: 0.5.{build}
|
2017-09-21 13:32:15 +02:00
|
|
|
|
2018-03-21 12:52:59 +01:00
|
|
|
#branches:
|
|
|
|
# only:
|
|
|
|
# - master
|
|
|
|
# - dev
|
|
|
|
# - debug
|
2017-09-21 13:32:15 +02:00
|
|
|
|
|
|
|
skip_tags: true
|
|
|
|
|
|
|
|
#image: WMF 5
|
|
|
|
# Test ne build image:
|
|
|
|
image: Visual Studio 2017
|
|
|
|
|
|
|
|
# Install pester module and init the Appveyor support.
|
2018-03-09 14:02:51 +01:00
|
|
|
|
|
|
|
# Enable RDP connection for debugging
|
|
|
|
#init:
|
|
|
|
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|
|
|
2017-09-21 13:32:15 +02:00
|
|
|
install:
|
|
|
|
- ps: Import-Module .\tools\AppVeyor.psm1
|
2018-03-21 12:16:09 +01:00
|
|
|
- ps: Invoke-InstallDependencies
|
2017-09-21 13:32:15 +02:00
|
|
|
|
|
|
|
environment:
|
|
|
|
NuGetToken:
|
|
|
|
secure: 835qfZIkC9mE7QhkYfOZVAdR8rZhPvxG8BO4CbeaelRQOhlqmaSr8G1DWRJzZ/bS
|
|
|
|
CoverallsToken:
|
|
|
|
secure: eTjWqHL48MBr8wp1rSgLrXHdtpfDV/uClacP3svlWJfCvn/zVokpuaMnWM5RoyIY
|
|
|
|
|
|
|
|
build: false
|
|
|
|
|
|
|
|
before_build:
|
|
|
|
- ps: Invoke-AppVeyorBumpVersion
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- ps: Invoke-AppVeyorBuild
|
|
|
|
|
|
|
|
test_script:
|
2018-03-09 14:02:51 +01:00
|
|
|
- ps: |
|
2019-01-16 12:55:29 +01:00
|
|
|
$CodeCoverage = Invoke-AppVeyorTests
|
2018-03-09 14:02:51 +01:00
|
|
|
if ($null -ne $Env:CoverallsToken) {
|
2019-01-16 12:55:29 +01:00
|
|
|
Invoke-CoverageReport -PesterCoverageReport $CodeCoverage
|
2018-03-09 14:02:51 +01:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
Write-Warning "No CoverallsToken found. This build seems to be triggered by a PR. Skipping this step..."
|
|
|
|
}
|
2017-09-21 13:32:15 +02:00
|
|
|
|
2017-10-23 10:53:52 +02:00
|
|
|
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
|
|
|
|
artifact: PSCredentialStore.zip # upload all NuGet packages to release assets
|
|
|
|
draft: false
|
2019-01-16 12:55:29 +01:00
|
|
|
prerelease: true
|
2017-12-22 08:10:37 +01:00
|
|
|
on:
|
|
|
|
branch: master # build release on master branch changes
|
2017-10-23 10:53:52 +02:00
|
|
|
|
|
|
|
after_deploy:
|
2017-12-22 08:10:37 +01:00
|
|
|
- ps: Invoke-AppVeyorPSGallery -OnBranch 'master'
|
2018-03-09 14:02:51 +01:00
|
|
|
|
|
|
|
# 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'))
|