-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
226 lines (192 loc) · 6.58 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
########################################################
## MASTER ##
########################################################
-
branches:
only:
- master
image:
- Visual Studio 2017
- Ubuntu
configuration:
- Debug
- Release
platform: AnyCPU
version: 1.4.1.{build}
clone_depth: 1
skip_commits:
files:
- docs/*
- LICENSE
- README.md
- .travis.yml
- codecov.yml
- .gitignore
cache:
- packages -> **\packages.config, **\*.csproj, build.ps1 #local nuget folder
# - '%HOMEDRIVE%%HOMEPATH%\.nuget\packages -> **\packages.config, **\*.csproj, build.ps1' #global nuget folder
- '%LocalAppData%\Microsoft\dotnet -> appveyor.yml, after_test_fx_core.ps1'
- '%PROGRAMDATA%\chocolatey\bin -> before_build_docfx.ps1, after_test_fx_core.ps1' #chocolatey native
- '%PROGRAMDATA%\chocolatey\lib -> before_build_docfx.ps1, after_test_fx_core.ps1' #chocolatey portable
- '$HOME/.local/share/NuGet/v3-cache' #nuget cache ubuntu
- '$HOME/.local/share/NuGet/Cache' #nuget cache ubuntu
- '%LocalAppData%\NuGet\Cache' #v>3 nuget cache windows
- '%LocalAppData%\NuGet\v3-cache' #nuget cache windows
environment:
COVERALLS_REPO_TOKEN:
secure: q5xCVqG+/0ByXEFTGYgf1lCWwrOqq35br6CzLf5MPKMD2L8VboA10tKcRfW2n/70
op_build_user: "OpenPublishBuild"
op_build_user_email: "[email protected]"
access_token:
secure: hcC9OXbkHDxVjkNgWCjPpKK5gb0FJIgfPwopyIWBsEW4RZ8lc+/ys+lWmQGstXli
assembly_info:
patch: true
file: common\CommonAssemblyInfo.cs
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}"
install:
- ps: ./init_script.ps1
- git submodule update --init --recursive
before_build:
- ps: nuget restore $env:SOLUTION_NAME
- ps: ./before_build_docfx.ps1
build_script:
- ps: msbuild $env:SOLUTION_NAME /verbosity:m
after_build:
- ps: ./after_build_docfx.ps1
test_script:
- ps: ./test_script.ps1
after_test:
- ps: ./after_test_nuget.ps1
deploy:
- provider: NuGet
api_key:
secure: 65K3Rfg6rvqhLEnbWhMmOfnp2QpEgRmrJ8rKGOlQkwhXEhx+B0fO3+nE3+m3O9bS
skip_symbols: false
artifact: PCLExt.FileStorage.nupkg
on:
os: Windows_NT
configuration: Release
APPVEYOR_REPO_TAG: true
- provider: NuGet
server: https://nuget.pkg.github.com/PCLExt/index.json
artifact: PCLExt.FileStorage.nupkg
username: PCLExt
api_key:
secure: Cc5LQq7vuBMi2CTmoYPLFHuXeFeqTThn6xbL9O/f+r4GAut49B7rDBKfzbwl2TtC
on:
os: Windows_NT
configuration: Release
APPVEYOR_REPO_TAG: true
########################################################
## DEVELOPMENT ##
########################################################
-
branches:
only:
- devel
image:
- Visual Studio 2017
- Ubuntu
configuration:
- Debug
- Release
platform: AnyCPU
version: 1.5.0.{build}
clone_depth: 1
skip_commits:
files:
- docs/*
- LICENSE
- README.md
- .travis.yml
- codecov.yml
- .gitignore
cache:
- packages -> **\packages.config, **\*.csproj, build.ps1 #local nuget folder
# - '%HOMEDRIVE%%HOMEPATH%\.nuget\packages -> **\packages.config, **\*.csproj, build.ps1' #global nuget folder
- '%LocalAppData%\Microsoft\dotnet -> appveyor.yml, after_test_fx_core.ps1'
- '%PROGRAMDATA%\chocolatey\bin -> before_build_docfx.ps1, after_test_fx_core.ps1' #chocolatey native
- '%PROGRAMDATA%\chocolatey\lib -> before_build_docfx.ps1, after_test_fx_core.ps1' #chocolatey portable
- '$HOME/.local/share/NuGet/v3-cache' #nuget cache ubuntu
- '$HOME/.local/share/NuGet/Cache' #nuget cache ubuntu
- '%LocalAppData%\NuGet\Cache' #v>3 nuget cache windows
- '%LocalAppData%\NuGet\v3-cache' #nuget cache windows
environment:
COVERALLS_REPO_TOKEN:
secure: q5xCVqG+/0ByXEFTGYgf1lCWwrOqq35br6CzLf5MPKMD2L8VboA10tKcRfW2n/70
assembly_info:
patch: true
file: common\CommonAssemblyInfo.cs
assembly_version: "{version}"
assembly_file_version: "{version}"
assembly_informational_version: "{version}-devel"
install:
- ps: ./init_script.ps1
- git submodule update --init --recursive
before_build:
- ps: nuget restore $env:SOLUTION_NAME
build_script:
- ps: msbuild $env:SOLUTION_NAME /verbosity:m
test_script:
- ps: ./test_script.ps1
after_test:
- ps: ./after_test_nuget-devel.ps1
deploy:
- provider: NuGet
api_key:
secure: 65K3Rfg6rvqhLEnbWhMmOfnp2QpEgRmrJ8rKGOlQkwhXEhx+B0fO3+nE3+m3O9bS
skip_symbols: false
artifact: PCLExt.FileStorage-devel.nupkg
on:
os: Windows_NT
configuration: Release
- provider: NuGet
server: https://nuget.pkg.github.com/PCLExt/index.json
artifact: PCLExt.FileStorage-devel.nupkg
username: PCLExt
api_key:
secure: Cc5LQq7vuBMi2CTmoYPLFHuXeFeqTThn6xbL9O/f+r4GAut49B7rDBKfzbwl2TtC
on:
os: Windows_NT
configuration: Release
########################################################
## ANY OTHER BRANCH ##
########################################################
-
image:
- Visual Studio 2019
- Ubuntu
configuration:
- Debug
- Release
platform: AnyCPU
clone_depth: 1
skip_commits:
files:
- docs/*
- LICENSE
- README.md
- .travis.yml
- codecov.yml
- .gitignore
cache:
- packages -> **\packages.config, **\*.csproj, build.ps1 #local nuget folder
# - '%HOMEDRIVE%%HOMEPATH%\.nuget\packages -> **\packages.config, **\*.csproj, build.ps1' #global nuget folder
- '%LocalAppData%\Microsoft\dotnet -> appveyor.yml, after_test_fx_core.ps1'
- '%PROGRAMDATA%\chocolatey\bin -> before_build_docfx.ps1, after_test_fx_core.ps1' #chocolatey native
- '%PROGRAMDATA%\chocolatey\lib -> before_build_docfx.ps1, after_test_fx_core.ps1' #chocolatey portable
- '$HOME/.local/share/NuGet/v3-cache' #nuget cache ubuntu
- '$HOME/.local/share/NuGet/Cache' #nuget cache ubuntu
- '%LocalAppData%\NuGet\Cache' #v>3 nuget cache windows
- '%LocalAppData%\NuGet\v3-cache' #nuget cache windows
install:
- ps: ./init_script.ps1
- git submodule update --init --recursive
before_build:
- ps: nuget restore $env:SOLUTION_NAME
build_script:
- ps: msbuild $env:SOLUTION_NAME /verbosity:m
test_script:
- ps: ./test_script.ps1