forked from justinstenning/SharedMemory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
132 lines (104 loc) · 4.31 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
# appveyor.yml
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 2.0.{build}
# branches to build
branches:
# whitelist
only:
- master
# blacklist
except:
- develop
# Do not build on tags (GitHub only)
skip_tags: true
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Windows Server 2012
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\Projects\SharedMemory
# environment variables
environment:
StrongNameKeyPath: c:\keys\sign.snk
StrongNameKey:
secure: J0tsC0D5HeApnRFCPnLLcGWW/9UGR4mooz/TBZY9hQvU1WXbkAxsDusgec/e6IWPj+I8Nih/b+iUmG8JZ3h6ZHXgM0HbHiFEC3Uw2zNfzDSHhgZt9CHRTN9/SDXwAOYDQRG+vrObC1OLhE3RJKxUIxsSD1AImiyENKLyZO9xbjCyi80t9IIlVIx5vWoR/nTWzsDmPfUJXxGaAba/yaxL/V6w7tBMle+hQdk73uPCIAuS0lcXw68GZA4kQtsLEOqOCO1NI54CId6on39K7VZWlA9siOoy/5Xfy+DX5N5os7O02Mnczh+XqAcpGuyybI6a1nedMIvkG8nUd3b18oJhUDM5tgkqVDjzsMv6EnoH30HNZvt+cbciS7cKN3UtyPw2RR7Hy2Yu5GJRzH17hbTRdPeb1oMDxQu0I70tE6Utnqcef+TLD0APbWcXfv19jXzIKrP6p59ZK8xDLL66wm5JXpL2Ld23FXjZ45kp8rF2KRKox3Xf9Zg5QsOHE9glm+tJLLXw9TjE28nPPXmwgM+kfgb0KlPkDrr3wbKnWjz3H9wvl0kgkgZVVg5cXz5NU1NsBgtsB3QX4hHllS94M9pIc13c3Sgosw/NsVMIJeDDuNPddLfR/IA8udY/FO234+A3hQpCAn0tSbn2yj4xywWMgAPgwHi2ZVpfNXuvJ4V+/FwH+sNS8JSgzzDGtOBvHYcb6mQf6xASVwQoY91PMSAldw7ahXvT+n7GLut5kFRVo8lS4CDHI48gcQdouyh1J4HYYzMn8EggnEk3Cq653ZWbXlpwHmsjwsMW4T3Z3jwAi2iL1tciDPLFrJKtp5UrCDacmGk3nV8WnHdLSYV1sh8JGj4KKdhobfgdD9T5s460NlntuU3UY6seqofjswHoty9Pimpq3pJ+ahcK6NBW4MsVsd960NwLSwiLOS5xXEbqgsSvcUgVeywbwrHDUFOaxKlqrYt7AZzOLSXJPExAeUXMakyZgrS88hkIputq8Bd+xC8He+yRv5qYgc8Sa+u76dPJPVe+R8OP9jUNBCYLQ5PaAATMLXh+059jN6PFKzGBqWI=
# scripts that run after cloning repository
install:
# Prepare key for signing
- ps: |
mkdir ([io.path]::GetDirectoryName($env:StrongNameKeyPath)) | out-null
[IO.File]::WriteAllBytes($env:StrongNameKeyPath, [Convert]::FromBase64String($env:StrongNameKey))
Write-Host "Retrieved sign key from secure environment variable"
# Update NuGet version strings
# - ps: |
# $root = $env:APPVEYOR_BUILD_FOLDER
# $versionStr = $env:APPVEYOR_BUILD_VERSION
# Write-Host "Setting .nuspec version tag to $versionStr"
# $content = (Get-Content $root\SharedMemory\SharedMemory.nuspec)
# $content = $content -replace '\$version\$',$versionStr
# $content | Out-File $root\SharedMemory\SharedMemory.nuspec
# enable patching of AssemblyInfo.* files
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
#---------------------------------#
# build configuration #
#---------------------------------#
platform:
- Any CPU
# - x86
configuration:
- Net35Release
- Net40Release
build:
project: SharedMemory.sln # path to Visual Studio solution or project
# MSBuild verbosity level
verbosity: minimal
# scripts to run before build
before_build:
# scripts to run after build
after_build:
# to run your custom scripts instead of automatic MSBuild
build_script:
# to disable automatic builds
#build: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
# pushing entire folder as a zip archive
- path: bin
name: SharedMemory
type: zip
# pushing all *.nupkg files in directory
- path: '**\*.nupkg' # find all NuGet packages recursively
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
# deploy:
# # Deploying to NuGet feed
# - provider: NuGet
# api_key:
# secure: GNkrc/dcRF9/eobXlHAQZQGQeJr0XwseyCPVlwotQE0/hNHBabu1a/E1V4d3S4Ub
# skip_symbols: false
# scripts to run before deployment
before_deploy:
# - nuget pack "%APPVEYOR_BUILD_FOLDER%\SharedMemory\SharedMemory.nuspec" -Symbols -Version %APPVEYOR_BUILD_VERSION%
# scripts to run after deployment
after_deploy:
# to run your custom scripts instead of provider deployments
deploy_script:
# to disable deployment
#deploy: off