forked from sendwithus/sendwithus_csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
474 lines (410 loc) · 13.4 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
# 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: 2.1.{build}
# you can use {branch} name in version format too
# version: 1.0.{build}-{branch}
# build all branches by default. Uncomment below to select specific branches.
#branches:
# # whitelist
# only:
# - master
# - production
#
# # blacklist
# except:
# - gh-pages
# Build on all pushes, tagged or not. Uncomment below to enabled/disable builds on tagged/untagged pushes
## Do not build on tags (GitHub and BitBucket)
#skip_tags: true
#
## Start builds on tags only (GitHub and BitBucket)
#skip_non_tags: true
# Don't skip commits based on particular messages or specific users. Uncomment below to do so.
# Skipping commits with particular message or from specific user
#skip_commits:
# message: /Created.*\.(png|jpg|jpeg|bmp|gif)/ # Regex for matching commit message
# author: John # Commit author's username, name, email or regexp maching one of these.
#
## Including commits with particular message or from specific user
#only_commits:
# message: /build/ # Start a new build if message contains 'build'
# author: jack@company.com # Start a new build for commit of user with email jack@company.com
# Skipping commits affecting specific files (GitHub only). More details here: https://www.appveyor.com/docs/appveyor-yml
#skip_commits:
# files:
# - docs/*
# - '**/*.html'
# Including commits affecting specific files (GitHub only). More details here: https://www.appveyor.com/docs/appveyor-yml
#only_commits:
# files:
# - Project-A/
# - Project-B/
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2017
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# No need to specify the clone directory (no absolute file paths in project)
## clone directory
#clone_folder: c:\projects\myproject
# Shallow cloning not necessary since project is small and commits should be relatively infrequent
## fetch repository as zip archive
#shallow_clone: true # default is "false"
#
## set clone depth
#clone_depth: 5 # clone entire repository history if not defined
# setting up etc\hosts file
hosts:
queue-server: 127.0.0.1
db.server.com: 127.0.0.2
# No need for environment variables at the moment
## 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==
#
## environment:
## global:
## connection_string: server=12;password=13;
## service_url: https://127.0.0.1:8090
##
## matrix:
## - db: mysql
## provider: mysql
##
## - db: mssql
## provider: mssql
## password:
## secure: $#(JFDA)jQ@#$
# Don't allow any failing jobs
## 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
# No need for a build cache
# build cache to preserve files/folders between builds
#cache:
# - packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
# - projectA\libs
# - node_modules # local npm modules
# - '%LocalAppData%\NuGet\Cache'
# No need for other services
## enable service required for build/tests
#services:
# - mssql2014 # start SQL Server 2014 Express
# - mssql2014rs # start SQL Server 2014 Express and Reporting Services
# - mssql2012sp1 # start SQL Server 2012 SP1 Express
# - mssql2012sp1rs # start SQL Server 2012 SP1 Express and Reporting Services
# - mssql2008r2sp2 # start SQL Server 2008 R2 SP2 Express
# - mssql2008r2sp2rs # start SQL Server 2008 R2 SP2 Express and Reporting Services
# - mysql # start MySQL 5.6 service
# - postgresql # start PostgreSQL 9.5 service
# - iis # start IIS
# - msmq # start Queuing services
# - mongodb # start MongoDB
# No need to install additional software
## scripts that run after cloning repository
#install:
# # by default, all script lines are interpreted as batch
# - echo This is batch
# # to run script as a PowerShell command prepend it with ps:
# - ps: Write-Host 'This is PowerShell'
# # batch commands start from cmd:
# - cmd: echo This is batch again
# - cmd: set MY_VAR=12345
# enable patching of AssemblyInfo.cs files
assembly_info:
patch: true
file: AssemblyInfo.cs
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
# Automatically register private account and/or project AppVeyor NuGet feeds.
nuget:
account_feed: true
# project_feed: true
disable_publish_on_pr: true # disable publishing of .nupkg artifacts to
# account/project feeds for pull request builds
#---------------------------------#
# 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:
# - x86
# - Any CPU
# build Configuration, i.e. Debug, Release, etc.
configuration: Release
# to add several configurations to build matrix:
#configuration:
# - Debug
# - Release
build:
parallel: true # enable MSBuild parallel builds
project: Sendwithus/SendwithusClient.sln # path to Visual Studio solution or project
# publish_wap: true # package Web Application Projects (WAP) for Web Deploy
# publish_wap_xcopy: true # package Web Application Projects (WAP) for XCopy deployment
# publish_azure: true # package Azure Cloud Service projects and push to artifacts
publish_nuget: true # package projects with .nuspec files and push to artifacts
publish_nuget_symbols: true # generate and publish NuGet symbol packages
include_nuget_references: true # add -IncludeReferencedProjects option while packaging NuGet artifacts
# MSBuild verbosity level
#verbosity: quiet|minimal|normal|detailed
verbosity: normal
# scripts to run before build
before_build:
- nuget restore Sendwithus
# 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:
# to run your custom scripts instead of automatic MSBuild
build_script:
# to disable automatic builds
#build: off
#---------------------------------#
# tests configuration #
#---------------------------------#
# Let appveyor automatically discover which tests to run (and run all tests)
#test:
# assemblies:
# - SendwithusClientTest.dll
#
# categories:
# - UI
# - E2E
# to run tests from different categories as separate jobs in parallel
#test:
# categories:
# - A # A category common for all jobs
# - [UI] # 1st job
# - [DAL, BL] # 2nd job
#No scripts to run
## scripts to run before tests
#before_test:
# - echo script1
# - ps: Write-Host "script1"
#
## scripts to run after tests
#after_test:
#
## to run your custom scripts instead of automatic tests
#test_script:
# - echo This is my custom test script
#
# to disable automatic tests
#test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
# Push any nupkg files
artifacts:
#
# # pushing a single file
# - path: test.zip
#
# # pushing a single file with environment variable in path and "Deployment name" specified
# - path: MyProject\bin\$(configuration)
# name: myapp
#
# # pushing entire folder as a zip archive
# - path: logs
#
# pushing all *.nupkg files in build directory recursively
- path: '**\*.nupkg'
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
deploy:
# Only deploy to NuGet
# # FTP deployment provider settings
# - provider: FTP
# protocol: ftp|ftps|sftp
# host: ftp.myserver.com
# username: admin
# password:
# secure: eYKZKFkkEvFYWX6NfjZIVw==
# folder:
# application:
# active_mode: false
# beta: true # enable alternative FTP library for 'ftp' and 'ftps' modes
# debug: true # show complete FTP log
#
# # Amazon S3 deployment provider settings
# - provider: S3
# access_key_id:
# secure: ABcd==
# secret_access_key:
# secure: ABcd==
# bucket: my_bucket
# folder:
# artifact:
# set_public: false
#
# # Azure Blob storage deployment provider settings
# - provider: AzureBlob
# storage_account_name:
# secure: ABcd==
# storage_access_key:
# secure: ABcd==
# container: my_container
# folder:
# artifact:
#
# # Web Deploy deployment provider settings
# - provider: WebDeploy
# server: http://www.deploy.com/myendpoint
# website: mywebsite
# username: user
# password:
# secure: eYKZKFkkEvFYWX6NfjZIVw==
# ntlm: false
# remove_files: false
# app_offline: false
# do_not_use_checksum: true # do not use check sum for comparing source and destination files. By default checksums are used.
# sync_retry_attempts: 2 # sync attempts, max
# sync_retry_interval: 2000 # timeout between sync attempts, milliseconds
# aspnet_core: true # artifact zip contains ASP.NET Core application
# aspnet_core_force_restart: true # poke app's web.config before deploy to force application restart
# skip_dirs: \\App_Data
# skip_files: web.config
# on:
# branch: release
# platform: x86
# configuration: debug
#
# # Deploying to Azure Cloud Service
# - provider: AzureCS
# subscription_id:
# secure: fjZIVw==
# subscription_certificate:
# secure: eYKZKFkkEv...FYWX6NfjZIVw==
# storage_account_name: my_storage
# storage_access_key:
# secure: ABcd==
# service: my_service
# slot: Production
# target_profile: Cloud
# artifact: MyPackage.cspkg
# Deploying to NuGet feed
- provider: NuGet
# Leave server unspecified to use default (nuget.org)
# server: https://my.nuget.server/feed
api_key:
# secure: Rea5RB61aPttROjfP7gPZ+X+QF2ZZPpEJX9Qb0mdCXZ7je3JwbJCpK9In+A8mhNK
secure: UnIpUxrxUuG1hbRiYfNvFCXJCsgQUDugWIQuR4Jcd+HwFykVhQGrbhYctR5seAdW
# skip_symbols: false
# symbol_server: https://your.symbol.server/feed
# Only deploy Release builds on the master branch
artifact: /.*\.nupkg/
on:
branch: master
platform: Any CPU
configuration: Release
# # Deploy to GitHub Releases
# - provider: GitHub
# artifact: /.*\.nupkg/ # upload all NuGet packages to release assets
# draft: false
# prerelease: false
# on:
# branch: master # release from master branch only
# appveyor_repo_tag: true # deploy on tag push only
#
# # Deploying to a named environment
# - provider: Environment
# name: staging
# on:
# branch: staging
# env_var1: value1
# env_var2: value2
# scripts to run before deployment
before_deploy:
# scripts to run after deployment
after_deploy:
# to run your custom scripts instead of provider deployments
deploy_script:
# to disable deployment
#deploy: off
#---------------------------------#
# global handlers #
#---------------------------------#
# on successful build
on_success:
# - do something
# on build failure
on_failure:
# - do something
# after build failure or success
on_finish:
# - do something
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
# Email
- provider: Email
to:
- hennig.chris@gmail.com
- sendwithus.test@email.com
# Use default settings
# subject: 'Build {{status}}' # optional
# message: "{{message}}, {{commitId}}, ..." # optional
# on_build_success: true
# on_build_failure: true
# on_build_status_changed: true
# # HipChat
# - provider: HipChat
# auth_token:
# secure: RbOnSMSFKYzxzFRrxM1+XA==
# room: ProjectA
# template: "{message}, {commitId}, ..."
# TODO: Setup Slack integration?
# # Slack
# - provider: Slack
# incoming_webhook: http://incoming-webhook-url
#
# # ...or using auth token
#
# - provider: Slack
# auth_token:
# secure: kBl9BlxvRMr9liHmnBs14A==
# channel: development
# template: "{message}, {commitId}, ..."
# # Campfire
# - provider: Campfire
# account: appveyor
# auth_token:
# secure: RifLRG8Vfyol+sNhj9u2JA==
# room: ProjectA
# template: "{message}, {commitId}, ..."
#
# # Webhook
# - provider: Webhook
# url: http://www.myhook2.com
# headers:
# User-Agent: myapp 1.0
# Authorization:
# secure: GhD+5xhLz/tkYY6AO3fcfQ==
# on_build_success: false
# on_build_failure: true
# on_build_status_changed: true