forked from amaggiulli/QLNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
124 lines (120 loc) · 3.67 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
# QLNet Appveyor builds
# Configuration for "master" branch
# build in Release mode and deploy to Nuget and GitHub
-
branches:
only:
- master
version: 1.12.0
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
build_script:
- cmd: dotnet build -c Release
after_build:
- cmd: dotnet pack src/qlnet/qlnet.csproj -c Release -o ./
artifacts:
- path: src\QLNet\bin\Release\netstandard1.2\QLNet.dll
name: Windows
- path: .\*.nupkg
name: ng
deploy:
- provider: GitHub
tag: QLNet-v1.12.0
release: QLNet Version 1.12.0
description: QLNet 1.12.0
auth_token:
secure: rK95hgNgZt9ybzXBJ/1W0nbqsG/aENQ22eyY2qxn5xjbi7ZEjv+5BmNjY/l1cAYH
artifact: src\QLNet\bin\Release\netstandard1.2\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 Release mode, run tests , deploy to Sonar
-
branches:
only:
- develop
version: 1.12.0-preview.{build}
configuration: Release
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"
- cmd: "SET runner_args=\"\""
- cmd: "if \"%APPVEYOR_PULL_REQUEST_NUMBER%\"==\"\" SET runner_args=%sonar_commit_new%"
- cmd: "if not \"%APPVEYOR_PULL_REQUEST_NUMBER%\"==\"\" SET runner_args=%sonar_pr_new%"
- cmd: "dotnet sonarscanner begin %runner_args%"
build_script:
- cmd: dotnet build -c Release
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: dotnet test -v=normal --no-build -p:Configuration=Release --collect "XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
after_test:
- cmd: "dotnet sonarscanner end /d:\"sonar.login=%sonar_token_new%\""
- cmd: dotnet pack src/qlnet/qlnet.csproj -c Release -o ./
deploy:
- provider: NuGet
api_key:
secure: HcilScZbZnJrCk5hoEPz9MSzKQanBzsQCfulI9gFpcT7wurwxIy3hwSwPfjXmr/v
skip_symbols: false
artifact: ng
# Configuration for "feature/*" branch
# build in Release mode, run tests , deploy to Nuget
-
branches:
only:
- /feature/
version: 1.12.0-{build}
configuration: Release
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.12.0-%newVersion%"
before_build:
- cmd: dotnet restore qlnet.sln
build_script:
- cmd: dotnet build -c Release
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
test_script:
- cmd: dotnet test -v=normal --no-build -p:Configuration=Release