forked from siteserver/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
161 lines (128 loc) · 3.69 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
# configuration for "master" branch
- branches:
only:
- master
version: 6.7.{build}
image: Visual Studio 2017
assembly_info:
patch: true
file: '**\AssemblyInfo.cs'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
configuration:
- Release
environment:
nodejs_version: '6'
TreatWarningsAsErrors: false
install:
- ps: Install-Product node $env:nodejs_version
- npm install gulp -g
- npm install
skip_tags: true
cache:
- packages -> **\packages.config
- node_modules # local npm modules
before_build:
- nuget restore siteserver-all.sln
build:
project: siteserver-all.sln # path to Visual Studio solution or project
publish_nuget: true
after_build:
- gulp build
- nuget pack build/SS.CMS.nuspec
- gulp zip
artifacts:
- path: siteserver_install.zip
name: siteserver_install
- path: siteserver.exe
name: siteserver.exe
- path: '*.nupkg'
deploy:
- provider: GitHub
release: siteserver-v$(appveyor_build_version)
description: 'SiteServer CMS'
auth_token:
secure: B/TFrPxGyyTS/NKTQsf/GBLPfGI+Rz/j3e7FVLaP6yjeUDljwkfvV70C+CT34/10
artifact: /.*\.[zip|exe]/
draft: false
prerelease: false
- provider: NuGet
server: # remove to push to NuGet.org
api_key:
secure: B9umZPwBVx2TMfYt7G1Eppy7XX0FkqWioXxwR+lKv5XVRc6ezjOXP8D9iuisOWBF
skip_symbols: false
symbol_server: # remove to push symbols to SymbolSource.org
artifact: /.*\.nupkg/
notifications:
- provider: GitHubPullRequest
on_build_success: true
on_build_failure: true
# configuration for "staging" branch
- branches:
only:
- staging
version: 6.7.{build}-beta
image: Visual Studio 2017
assembly_info:
patch: true
file: '**\AssemblyInfo.cs'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
configuration:
- Release
environment:
nodejs_version: '6'
TreatWarningsAsErrors: false
DOCKER_USER:
secure: plV6NmiOZal0f3H/xNFuoA==
DOCKER_PASS:
secure: AzfvhYL4heX1Acqv5C3Oug==
install:
- ps: Install-Product node $env:nodejs_version
- npm install gulp -g
- npm install
- docker version
skip_tags: true
cache:
- packages -> **\packages.config
- node_modules # local npm modules
before_build:
- nuget restore siteserver-all.sln
build:
project: siteserver-all.sln # path to Visual Studio solution or project
publish_nuget: true
after_build:
- gulp build
- nuget pack build/SS.CMS.nuspec
- gulp zip
# - docker build -t siteserver/cms:latest -t siteserver/cms:v%appveyor_build_version% .
# - docker login -u="%DOCKER_USER%" -p="%DOCKER_PASS%"
# - docker push siteserver/cms
artifacts:
- path: siteserver_install.zip
name: siteserver_install
- path: siteserver.exe
name: siteserver.exe
- path: '*.nupkg'
deploy:
- provider: GitHub
release: siteserver-v$(appveyor_build_version)
description: 'SiteServer CMS'
auth_token:
secure: B/TFrPxGyyTS/NKTQsf/GBLPfGI+Rz/j3e7FVLaP6yjeUDljwkfvV70C+CT34/10
artifact: /.*\.[zip|exe]/
draft: false
prerelease: true
- provider: NuGet
server: # remove to push to NuGet.org
api_key:
secure: B9umZPwBVx2TMfYt7G1Eppy7XX0FkqWioXxwR+lKv5XVRc6ezjOXP8D9iuisOWBF
skip_symbols: false
symbol_server: # remove to push symbols to SymbolSource.org
artifact: /.*\.nupkg/
notifications:
- provider: GitHubPullRequest
on_build_success: true
on_build_failure: true