-
Notifications
You must be signed in to change notification settings - Fork 44
/
.appveyor.yml
95 lines (74 loc) · 2.71 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
# 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}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
- coverity_scan
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
image: Visual Studio 2022
# scripts that are called at very beginning, before repo cloning
init:
# This gives the login details for the build instance so you can RDP to it.
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- git config --global core.autocrlf input
configuration: Release
# enable patching of AssemblyInfo.cs files
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
#---------------------------------#
# build configuration #
#---------------------------------#
build_script:
- dotnet pack -c %CONFIGURATION% /p:PackageVersion=%APPVEYOR_BUILD_VERSION%
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: src\**\*.nupkg
- path: src\**\*.snupkg
- path: TestResults_*.7z
name: TestResults
#---------------------------------#
# tests configuration #
#---------------------------------#
test_script:
- coverage.cmd %CONFIGURATION%
after_test:
- 7z a -t7z -mx9 -bd TestResults_%APPVEYOR_BUILD_VERSION%.7z .\test\TestResults\*
#---------------------------------#
# deployment configuration #
#---------------------------------#
#---------------------------------#
# global handlers #
#---------------------------------#
#on_finish:
# # This blocks the build server from shutting down giving time to RDP onto it to help with diagnose build issues.
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
# Slack
- provider: Slack
auth_token:
secure: AkSNuuHmfzAFp2+Oq00NRQFOfrXl4ue08SHx0FC2WTeXSiZv8uVKI3ZBWns7HTcV
channel: async_interceptor
on_build_success: false
on_build_status_changed: true