This repository has been archived by the owner on Jun 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
141 lines (106 loc) · 3.45 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
# configuration for "master" branch
# build in Release mode
-
environment:
packageVersion: 0.3.0
version: '{branch}-v0.3.0-{build}'
image: Visual Studio 2017
install:
- cmd: appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
cache:
- packages -> **\packages.config
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
before_build:
- cmd: nuget restore
after_test:
- cmd: nuget pack Source\Lib\%APPVEYOR_PROJECT_NAME%\%APPVEYOR_PROJECT_NAME%.nuspec -OutputDirectory Build\Lib\RangeIt\%CONFIGURATION% -BasePath Source\Lib\%APPVEYOR_PROJECT_NAME% -Properties buildConfig=Release
- ps: Get-ChildItem .\Build\Lib\RangeIt\Release\RangeIt*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
build:
verbosity: minimal
branches:
only:
- master
test:
assemblies:
- Build\Tests\RangeIt.Tests\Release\RangeIt.Tests.dll
configuration: Release
artifacts:
- path: Build\Lib\RangeIt\Release\RangeIt.dll
name: Assembly
- path: Build\Lib\RangeIt\Release\RangeIt.pdb
name: AssemblyPDB
- path: Build\Lib\RangeIt\Release\RangeIt.xml
name: DocumentationXML
deploy:
- provider: NuGet
api_key:
secure: sjU4hS/2R00uglMrDRFL2J4F5HccKXtd+AOfK5XStBv/p4+ZoHjA3L7LNLklrkBr
skip_symbols: true
symbol_server:
artifact: RangeIt.$(packageVersion).nupkg
on:
appveyor_repo_tag: true
# configuration for all branches starting from "dev-"
# build in Debug mode
-
version: '{branch}-{build}'
image: Visual Studio 2017
install:
- cmd: appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
cache:
- packages -> **\packages.config
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
before_build:
- cmd: nuget restore
after_test:
- cmd: nuget pack Source\Lib\%APPVEYOR_PROJECT_NAME%\%APPVEYOR_PROJECT_NAME%.nuspec -OutputDirectory Build\Lib\RangeIt\%CONFIGURATION% -BasePath Source\Lib\%APPVEYOR_PROJECT_NAME% -Properties buildConfig=Debug
- ps: Get-ChildItem .\Build\Lib\RangeIt\Debug\RangeIt*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
build:
verbosity: minimal
branches:
only:
- dev
- /dev-.*/
test:
assemblies:
- Build\Tests\RangeIt.Tests\Debug\RangeIt.Tests.dll
configuration: Debug
artifacts:
- path: Build\Lib\RangeIt\Debug\RangeIt.dll
name: DebugAssembly
- path: Build\Lib\RangeIt\Debug\RangeIt.pdb
name: DebugAssemblyPDB
- path: Build\Lib\RangeIt\Debug\RangeIt.xml
name: DocumentationXML
# "fall back" configuration for all other branches
# no "branches" section defined
# do not deploy at all
-
version: '{branch}-{build}'
image: Visual Studio 2017
install:
- cmd: appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
cache:
- packages -> **\packages.config
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
before_build:
- cmd: nuget restore
build:
verbosity: minimal
test:
assemblies:
- Build\Tests\RangeIt.Tests\Debug\RangeIt.Tests.dll
configuration: Debug
artifacts:
- path: Build\Lib\RangeIt\Debug\RangeIt.dll
name: DebugAssembly
- path: Build\Lib\RangeIt\Debug\RangeIt.pdb
name: DebugAssemblyPDB
- path: Build\Lib\RangeIt\Debug\RangeIt.xml
name: DocumentationXML