forked from amaggiulli/QLNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
148 lines (144 loc) · 4.42 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
# QLNet Appveyor builds
# Configuration for "master" branch
# build in Release mode and deploy to Nuget and GitHub
-
branches:
only:
- master
version: 1.11.3
configuration: Release
platform: Any CPU
image: Visual Studio 2019
test: off
skip_tags: true
pull_requests:
do_not_increment_build_number: true
nuget:
disable_publish_on_pr: true
before_build:
- cmd: dotnet restore qlnet.sln
build:
project: QLNet.sln
verbosity: minimal
after_build:
- cmd: dotnet pack src/qlnet/qlnet.csproj -c Release -o ./
artifacts:
- path: src\QLNet\bin\Release\netstandard12\QLNet.dll
name: Windows
- path: .\*.nupkg
name: ng
deploy:
- provider: GitHub
tag: QLNet-v1.11.3
release: QLNet Version 1.11.3
description: QLNet 1.11.3
auth_token:
secure: rK95hgNgZt9ybzXBJ/1W0nbqsG/aENQ22eyY2qxn5xjbi7ZEjv+5BmNjY/l1cAYH
artifact: src\QLNet\bin\Release\netstandard12\QLNet.dll
draft: false
force_update: false
- provider: NuGet
api_key:
secure: HcilScZbZnJrCk5hoEPz9MSzKQanBzsQCfulI9gFpcT7wurwxIy3hwSwPfjXmr/v
skip_symbols: true
artifact: ng
# Configuration for "develop" branch
# build in Debug mode, run tests , deploy to Sonar
-
branches:
only:
- develop
version: 1.11.4-preview.{build}
configuration: Debug
platform: Any CPU
image: Visual Studio 2019
skip_tags: true
clone_folder: c:\projects\qlnet_develop
pull_requests:
do_not_increment_build_number: true
nuget:
disable_publish_on_pr: true
before_build:
- cmd: "dotnet tool install --global dotnet-sonarscanner\ndotnet restore qlnet.sln"
- cmd: "dotnet clean qlnet.sln"
- cmd: "SET runner_args=\"\""
- cmd: "if \"%APPVEYOR_PULL_REQUEST_NUMBER%\"==\"\" SET runner_args=%sonar_commit%"
- cmd: "if not \"%APPVEYOR_PULL_REQUEST_NUMBER%\"==\"\" SET runner_args=%sonar_pr%"
- cmd: "dotnet sonarscanner begin %runner_args%"
- cmd: "dotnet build qlnet.sln /p:Configuration=Debug /logger:\"C:\\Program Files\\AppVeyor\\BuildAgent\\dotnetcore\\Appveyor.MSBuildLogger.dll\" /target:src\\qlnet"
- cmd: "dotnet sonarscanner end /d:\"sonar.login=%sonar_token%\""
build:
project: QLNet.sln
verbosity: minimal
after_build:
- cmd: dotnet pack src/qlnet/qlnet.csproj -c Debug -o ./
artifacts:
- path: .\*.nupkg
name: ng
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
test_script:
- cmd: vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=LongRun" "c:\projects\qlnet_develop\tests\QLNet.Tests\bin\Debug\net452\QLNet.Tests.dll"
deploy:
- provider: NuGet
api_key:
secure: HcilScZbZnJrCk5hoEPz9MSzKQanBzsQCfulI9gFpcT7wurwxIy3hwSwPfjXmr/v
skip_symbols: false
artifact: ng
# Configuration for "feature/*" branch
# build in Debug mode, run tests , deploy to Sonar
-
branches:
only:
- /feature/
version: 1.11.4-{build}
configuration: Debug
platform: Any CPU
image: Visual Studio 2019
skip_tags: true
clone_folder: c:\projects\qlnet_feature
init:
- cmd: "set branch=%APPVEYOR_REPO_BRANCH%\necho branch:%branch%\nset gitVersion=%branch:/=.%\necho gitversion:%gitVersion%\nset newVersion=%gitVersion%.%APPVEYOR_BUILD_NUMBER%\necho %newVersion%"
- cmd: appveyor UpdateBuild -Version "1.11.4-%newVersion%"
before_build:
- cmd: dotnet restore qlnet.sln
build:
project: QLNet.sln
verbosity: minimal
after_build:
- cmd: dotnet pack src/qlnet/qlnet.csproj -c Debug -o ./
artifacts:
- path: .\*.nupkg
name: ng
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
pull_requests:
do_not_increment_build_number: true
nuget:
disable_publish_on_pr: true
deploy:
- provider: NuGet
api_key:
secure: HcilScZbZnJrCk5hoEPz9MSzKQanBzsQCfulI9gFpcT7wurwxIy3hwSwPfjXmr/v
skip_symbols: true
artifact: ng
test: off
# test_script:
# - cmd: vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory!=LongRun" "c:\projects\qlnet_feature\tests\QLNet.Tests\bin\Release\net45\QLNet.Tests.dll"
# "fall back" configuration for all other branches
# no "branches" section defined
# do not deploy at all
-
configuration: Debug