forked from nbuilder/nbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
149 lines (114 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
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
# feature branches
-
version: '5.0.0.{build}'
configuration: Release
branches:
only:
- develop
- /feature\/.*/
pull_requests:
do_not_increment_build_number: true
init:
nuget:
project_feed: true
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- ps: |
. ./build/Write-BuildInfo.ps1
. ./build/Before-Build.ps1
build_script:
- ps: |
. ./build/Build-Script.ps1
. ./build/New-NugetPackage.ps1 -Beta
before_test:
test_script:
- ps: |
. ./build/Test-Script.ps1
artifacts:
- path: NBuilder*.nupkg
name: nuget-package
cache:
- packages -> **\packages.config
# release branches
# compile, test, release beta version to nuget
-
version: '5.0.0.{build}'
configuration: Release
branches:
only:
- /release\/.*/
pull_requests:
do_not_increment_build_number: true
nuget:
project_feed: true
artifacts:
- path: NBuilder*.nupkg
name: nuget-package
deploy:
provider: NuGet
api_key:
secure: rEqnyErKFkhgxjUgir8i3zftWJ6AqqzYn/wXPXVSTJo1o9nQML8KU3pmG3sXOqCU
artifact: nuget-package
before_build:
- ps: |
. ./build/Write-BuildInfo.ps1
. ./build/Before-Build.ps1
build_script:
- ps: |
. ./build/Build-Script.ps1
. ./build/New-NugetPackage.ps1 -Beta
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
test_script:
- ps: |
. ./build/Test-Script.ps1
cache:
- packages -> **\packages.config
# release branches
# compile, test, release beta version to nuget
-
version: '5.0.0.{build}'
configuration: Release
branches:
only:
- master
pull_requests:
do_not_increment_build_number: true
nuget:
project_feed: true
artifacts:
- path: NBuilder*.nupkg
name: nuget-package
deploy:
provider: NuGet
api_key:
secure: rEqnyErKFkhgxjUgir8i3zftWJ6AqqzYn/wXPXVSTJo1o9nQML8KU3pmG3sXOqCU
artifact: nuget-package
before_build:
- ps: |
. ./build/Write-BuildInfo.ps1
. ./build/Before-Build.ps1
build_script:
- ps: |
. ./build/Build-Script.ps1
. ./build/New-NugetPackage.ps1
assembly_info:
patch: true
file: AssemblyInfo.*
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
test_script:
- ps: |
. ./build/Test-Script.ps1
cache:
- packages -> **\packages.config