-
-
Notifications
You must be signed in to change notification settings - Fork 336
/
appveyor.yml
226 lines (181 loc) · 6.19 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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.0.0.{build}
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# branches to build
branches:
# whitelist
only:
- master
# blacklist
except:
- gh-pages
# Do not build on tags (GitHub only)
skip_tags: true
# Do not build feature branch with open Pull Requests
# skip_branch_with_pr: true
# Maximum number of concurrent jobs for the project
max_jobs: 2
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
#os: Windows Server 2012
os: Windows Server 2019
image:
- Visual Studio 2022
# - Visual Studio 2019
# - Visual Studio 2019 Preview
# - Visual Studio 2017
# - Visual Studio 2015
# build Configuration, i.e. Debug, Release, etc.
#configuration: Release
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\projects\notepad3
# fetch repository as zip archive
#shallow_clone: true # default is "false"
# set clone depth
#clone_depth: 5 # clone entire repository history if not defined
# environment variables
#environment:
# my_var1: value1
# my_var2: value2
# this is how to set encrypted variable. Go to "Encrypt data" page in account menu to encrypt data.
# my_secure_var1:
# secure: FW3tJ3fMncxvs58/ifSP7w==
# this is how to allow failing jobs in the matrix
matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.
# allow_failures:
# - platform: x86
# configuration: Debug
# - platform: x64
# configuration: Release
# scripts that run after cloning repository
install:
- choco install autohotkey.install
# - ps: Update-AppveyorBuild -Version "2.$(Get-Date -format yy.Md).$env:appveyor_build_number"
- ps: '& "$env:appveyor_build_folder\Version.ps1" -AppVeyorEnv'
# - ps: |
# if ($true)
# {
# $Major = 2
# $Minor = $(Get-Date -format yy)
# $Revis = $(Get-Date -format Mdd)
# $Build = $env:appveyor_build_number
# if (!$Build) { $Build = 0 }
# $SciVer = Get-Content "scintilla\version.txt"
# if (!$SciVer) { $SciVer = 0 }
# $CompleteVer = "$Major.$Minor.$Revis.$Build"
# Copy-Item -LiteralPath "Versions\VersionEx.h.tpl" -Destination "src\VersionEx.h" -Force
# (Get-Content "src\VersionEx.h") | ForEach-Object { $_ -replace '\$MAJOR\$', "$Major" } | Set-Content "src\VersionEx.h"
# (Get-Content "src\VersionEx.h") | ForEach-Object { $_ -replace '\$MINOR\$', "$Minor" } | Set-Content "src\VersionEx.h"
# (Get-Content "src\VersionEx.h") | ForEach-Object { $_ -replace '\$MAINT\$', "$Revis" } | Set-Content "src\VersionEx.h"
# (Get-Content "src\VersionEx.h") | ForEach-Object { $_ -replace '\$BUILD\$', "$Build" } | Set-Content "src\VersionEx.h"
# (Get-Content "src\VersionEx.h") | ForEach-Object { $_ -replace '\$SCIVER\$', "$SciVer" } | Set-Content "src\VersionEx.h"
# Copy-Item -LiteralPath "Versions\Notepad3.exe.manifest.tpl" -Destination "res\Notepad3.exe.manifest.conf" -Force
# (Get-Content "res\Notepad3.exe.manifest.conf") | ForEach-Object { $_ -replace '\$VERSION\$', $CompleteVer } | Set-Content "res\Notepad3.exe.manifest.conf"
# Update-AppveyorBuild -Version $CompleteVer
# }
# enable patching of AssemblyInfo.* files
assembly_info:
patch: true
#file: '**\AssemblyInfo.*'
file: 'Versions\AssemblyInfo.inf'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
#platform: Any CPU
# to add several platforms to build matrix:
platform:
- Win32
- x64
# to add several configurations to build matrix:
configuration:
- Release
# - Debug
cache:
- packages -> **\packages.config
build:
parallel: true
project: Notepad3.sln
# MSBuild verbosity level (quiet|minimal|normal|detailed)
verbosity: minimal
# scripts to run before build
before_build:
- nuget restore -verbosity detailed
# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
before_package:
# scripts to run after build
after_build:
# - 7z a Notepad3_%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\Output\%CONFIGURATION%\Notepad3.exe
# - appveyor PushArtifact Notepad3_%APPVEYOR_BUILD_VERSION%.zip
# to run your custom scripts instead of automatic MSBuild
build_script:
# to disable automatic builds
#build: off
#---------------------------------#
# tests configuration #
#---------------------------------#
test: off
# assemblies:
# only:
# - asm1.dll
# - asm2.dll
# categories:
# only:
# - UI
# - E2E
# to disable automatic tests
#test: off
# scripts to run before tests
before_test:
- cmd: cd test
# - echo script1
# - ps: Write-Host "script1"
# to run your custom scripts instead of automatic tests
test_script:
- TestFileVersion.cmd
- TestAhkNotepad3.cmd
# scripts to run after tests
after_test:
# - echo after_test
#---------------------------------#
# artifacts configuration #
#---------------------------------#
# Artifact paths are relative to C:\projects\notepad3\
artifacts:
- path: bin\**\*.exe
# - name: All
#deploy:
# - provider: S3
# access_key_id: XXXXXXXXXXXXXXXXXXXX
# secret_access_key:
# secure: ---------------------------------------------------------
# region: us-west-2
# bucket: notepad3
# artifact: All
# set_public: true
# encrypt: true
#notifications:
#- provider: Email
# to:
# - rizonesoft+github@gmail.com
# on_build_success: true
# on_build_failure: true
# on_build_status_changed: true