-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
81 lines (64 loc) · 1.85 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
# Set our package version
environment:
package_version: '1.0.0'
package_suffix: '-alpha3'
image: Visual Studio 2017
# Installed nuget latest to support .Net Standard 2.0 and .Net Core 2.0
install:
- cmd: appveyor downloadfile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
# Restore NuGet packages
before_build:
- cmd: nuget restore
build:
verbosity: minimal
# Unit tests in .Net Core don't behave as well
test: off
configuration: Debug
for:
# Development
- branches:
only:
- master
skip_commits:
files:
- /*.md
- /*.yml
version: '$(package_version)-pre{build}-{branch}'
# Patch package version to all match
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '$(package_version).{build}'
package_version: '$(package_version)$(package_suffix)-pre{build}'
build:
publish_nuget: true
publish_nuget_symbols: true
# Deploy to MyGet
deploy:
- provider: NuGet
server: https://www.myget.org/F/oicnet/api/v2/package
api_key:
secure: gXj5iu2gWjqUfY5EbDi7pG7w6x3CNtWpG5p4Qy4KuWZ1rVXAzmVWXz6MIrmAUDeA
symbol_server: https://www.myget.org/F/oicnet/symbols/api/v2/package
# Releases
- branches:
only:
- releases
version: '$(package_version).{build}$(package_suffix)-{branch}'
configuration: Release
# Patch package version to all match
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '$(package_version).{build}'
package_version: '$(package_version)$(package_suffix)'
build:
publish_nuget: true
publish_nuget_symbols: true
# Deploy to NuGet
deploy:
- on:
appveyor_repo_tag: true
provider: NuGet
api_key:
secure: UCjrAYYDUxNW2lKDcDQ5ySo4YnD1TmgiQwiyHDsFkKMlqopx82C40xUWst9Ai18G