-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
86 lines (83 loc) · 2.32 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: 'Build #{build} [{branch}]'
pull_requests:
do_not_increment_build_number: false
skip_branch_with_pr: true
skip_tags: true
branches:
only:
- master
- develop
- /^feature\/.*/
- /^patch\/v\d+\.\d+\.x$/
image: Visual Studio 2022
configuration: Release
platform: Any CPU
shallow_clone: true
nuget:
disable_publish_on_pr: true
matrix:
fast_finish: true
environment:
CI_ARG_PRERELEASE_SUFFIX: '-internal'
CI_OUT_ARG_DEPLOYMENT_VERSION: ''
CI_OUT_ARG_DEPLOY: 'false'
for:
-
branches:
only:
- develop
environment:
CI_ARG_PRERELEASE_SUFFIX: '-prerelease'
deploy: off
-
branches:
only:
- /^feature\/.*/
deploy: off
-
branches:
only:
- /^((master)|(patch\/v\d+\.\d+\.x))$/
environment:
CI_ARG_PRERELEASE_SUFFIX: ''
CI_OUT_ARG_DEPLOY: 'true'
build_script:
- ps: >-
$Script:ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop;
Microsoft.PowerShell.Core\Set-StrictMode -Version 1;
& .\build.ps1 `
-Verbose `
-BuildConfiguration $env:Configuration `
-BuildPlatform $env:Platform `
-EnableDotCover `
-PrereleaseSuffix $env:CI_ARG_PRERELEASE_SUFFIX `
-AppveyorBuild `
-AppveyorSourceCodeRevisionId $env:APPVEYOR_REPO_COMMIT `
-AppveyorSourceCodeBranch $env:APPVEYOR_REPO_BRANCH `
-AppveyorBuildNumber $env:APPVEYOR_BUILD_NUMBER `
-AppveyorDeploymentFlagVariableName 'CI_OUT_ARG_DEPLOY' `
-AppveyorDeploymentVersionVariableName 'CI_OUT_ARG_DEPLOYMENT_VERSION'
test: off
artifacts:
- path: .artifacts\**\*
name: Artifacts
deploy:
- provider: GitHub
on:
branch: /^((master)|(patch\/v\d+\.\d+\.x))$/
CI_OUT_ARG_DEPLOY: 'true'
release: '$(CI_OUT_ARG_DEPLOYMENT_VERSION)'
description: '$(APPVEYOR_PROJECT_NAME) $(CI_OUT_ARG_DEPLOYMENT_VERSION)'
draft: true
prerelease: true
auth_token:
secure: IA0JpDs4+uNdYekaXOOeVdU0sOak2Tz6zwHP1QPjdiXF+JOaqLpGkYVLW928iuEX
artifact: Artifacts
notifications:
- provider: Email
to:
- '{{commitAuthorEmail}}'
subject: '[AppVeyor] {{projectName}} {{buildVersion}}: Build {{status}} ({{branch}} @ {{commitId}})'
on_build_success: true
on_build_failure: true
on_build_status_changed: false