This repository was archived by the owner on Sep 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
125 lines (112 loc) · 4.64 KB
/
appveyor.yml
File metadata and controls
125 lines (112 loc) · 4.64 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
platform: x64
environment:
nuget_user:
secure: kWtlS49bKmP0IFXmdvDHmxGI8mS0xQGrwiJoco9nYtA=
nuget_password:
secure: Pzvx2CQjxp8eCBP+nFI2eg==
appveyor_rdp_password:
secure: Pzvx2CQjxp8eCBP+nFI2eg==
configuration:
- Debug
- Release
version: 3.1.0.{build}
init:
- cmd: echo Project - %APPVEYOR_PROJECT_NAME%
- cmd: echo Worker image - %APPVEYOR_BUILD_WORKER_IMAGE%
- cmd: echo Branch - %APPVEYOR_REPO_BRANCH%
- cmd: echo Author - %APPVEYOR_REPO_COMMIT_AUTHOR%
- cmd: echo Commit - %APPVEYOR_REPO_COMMIT%
- cmd: echo Platform - %PLATFORM%
- cmd: echo Configuration - %CONFIGURATION%
- cmd: IF NOT "%APPVEYOR_PULL_REQUEST_NUMBER%"=="" (SET APPVEYOR_BUILD_VERSION=%APPVEYOR_BUILD_VERSION%-alpha) ELSE IF "%APPVEYOR_REPO_BRANCH%"=="develop" (SET APPVEYOR_BUILD_VERSION=%APPVEYOR_BUILD_VERSION%-beta) ELSE IF NOT "%APPVEYOR_REPO_BRANCH%"=="master" (SET APPVEYOR_BUILD_VERSION=%APPVEYOR_BUILD_VERSION%-alpha)
- cmd: echo Version - %APPVEYOR_BUILD_VERSION%
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Here comes automated git clone by AppVeyor
nuget:
account_feed: false
project_feed: false
install:
- cmd: C:\projects\platform-components\scripts\restore_nugets.bat
# enable patching of AssemblyInfo.* files
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
# skip branch build if there is an active pull request
skip_branch_with_pr: true
build:
parallel: true
project: .\src\platform-components.sln
publish_nuget: true
publish_nuget_symbols: false
verbosity: quiet
after_build:
- cmd: nuget pack C:\projects\platform-components\src\Spectre.Service\Spectre.Service.csproj -IncludeReferencedProjects -Version %APPVEYOR_BUILD_VERSION%
- cmd: nuget pack C:\projects\platform-components\src\Spectre.Mvvm\Spectre.Mvvm.csproj -IncludeReferencedProjects -Version %APPVEYOR_BUILD_VERSION%
- cmd: rmdir /s /q C:\projects\platform-components\src\packages
artifacts:
- path: .\src\Spectre.DataValidatorApp\bin\$(platform)\$(configuration)
name: DataValidator-$(configuration)
- path: .\docs\*.pdf
name: Manuals
- path: '**\*.nupkg'
name: NugetPackages-$(configuration)
deploy:
# push all packed apps to GitHub releases
- provider: GitHub
release: platform-components-v$(appveyor_build_version)
auth_token:
secure: dQadz+smqtuxpigZ/LmrUKyA0uVZ5kgljKntyoHEdobTycbeMywbfmiJtZPNcOQ2
artifact: /.*\.zip/
draft: true
# push all NuGet-s to GitHub releases
# overwrites Debug NuGets with Release ones
- provider: GitHub
release: platform-components-v$(appveyor_build_version)
auth_token:
secure: dQadz+smqtuxpigZ/LmrUKyA0uVZ5kgljKntyoHEdobTycbeMywbfmiJtZPNcOQ2
artifact: /.*\.nupkg/
draft: true
# push all manuals to GitHub releases
- provider: GitHub
release: platform-components-v$(appveyor_build_version)
auth_token:
secure: dQadz+smqtuxpigZ/LmrUKyA0uVZ5kgljKntyoHEdobTycbeMywbfmiJtZPNcOQ2
artifact: Manuals
on:
branch:
- master
- develop
configuration: Release
draft: true
# push all NuGet-s to our feed
- provider: NuGet
server: https://ci.appveyor.com/nuget/gmrukwa-xfn7vhwq20u6
api_key:
secure: t8FO9T5wMCmRVqjBKL+8u6wmF+EPGJ8NDgcZoH7hbk4=
skip_symbols: true
symbol_server: https://ci.appveyor.com/nuget/gmrukwa-xfn7vhwq20u6
artifact: /.*\.nupkg/
on:
configuration: Release
on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
notifications:
# this publishes to Continuous Integration channel in Glip
- provider: Webhook
url:
secure: V16hjhyXfcLNyhNUih9v1Lb4wDly5r6CNNufciMrvllwt0m0rkguf6o4DY7pbdKia/vJGmErvQLdEW0MkzqsAhLWiPY7+Z6qvzFjweP8xNg=
method: POST
content_type: application/json
body: >-
{
"icon": "https://www.appveyor.com/assets/img/appveyor-logo-256.png",
"activity": "AppVeyor for platform-components",
"title": "Build {{buildVersion}} **{{#failed}}failed{{/failed}}{{#passed}}passed{{/passed}}** in {{duration}}",
"body": "{{#isPullRequest}}Pull request: [#{{pullRequestId}}](https://github.com/spectre-team/spectre/pull/{{pullRequestId}})\n{{/isPullRequest}}Branch: [{{branch}}](https://github.com/spectre-team/spectre/tree/{{branch}})\nCommit: [{{commitId}} {{commitMessage}}](https://github.com/spectre-team/spectre/commit/{{commitId}})\nAuthor: {{commitAuthor}}\n[Build details]({{buildUrl}})"
}
on_build_success: true
on_build_failure: true
on_build_status_changed: true