-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
appveyor.yml
82 lines (82 loc) · 2.25 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
version: 1.0.{build}
skip_tags: true
skip_commits:
message: /^chore(release)/
branches:
only:
- master
- /^preview\/\d+.\d+.\d+$/
- /^release\/\d+.\d+.\d+$/
image:
- Visual Studio 2022
services:
- mongodb
environment:
GITHUB_TOKEN:
secure: /o9VAhx5ewGmdLR9qcgFJMzBaCuzOmGlsXAHu7khUJLdQzsv4gJzLUfYDghcRPHd
donetsdk: 9.0.100
JAVA_HOME: C:\Program Files\Java\jdk19
PATH: $(JAVA_HOME)\bin;$(PATH)
init:
- cmd: git config --global core.autocrlf true
install:
- ps: Install-Product node 20 x64
- ps: .\dotnet-install.ps1 -Version 8.0.10 -Runtime dotnet -Architecture x64 -InstallDir "C:\Program Files\dotnet"
- ps: .\dotnet-install.ps1 -Version 8.0.10 -Runtime aspnetcore -Architecture x64 -InstallDir "C:\Program Files\dotnet"
- ps: .\dotnet-install.ps1 -Version $env:donetsdk -InstallDir "C:\Program Files\dotnet"
- ps: dotnet tool install --global GitVersion.Tool
- ps: dotnet gitversion /l console /output buildserver
- ps: dotnet tool install --global dotnet-sonarscanner
- ps: dotnet workload restore
- cmd: nuget install ReportGenerator -ExcludeVersion
- cmd: nuget install redis-64 -excludeversion
- cmd: redis-64\tools\redis-server.exe --service-install
- cmd: redis-64\tools\redis-server.exe --service-start
- ps: ./appveyorinit.ps1
- ps: dotnet --list-runtimes
build_script:
- ps: ./build.ps1
test_script:
- ps: ./publish.ps1
artifacts:
- path: test/**/*.dmp
name: dump
- path: artifacts/**/*.nupkg
name: nuget
- path: artifacts/**/*.zip
name: zip
deploy:
- provider: NuGet
api_key:
secure: UCcGrUEujBVjkw4G9l6ebB4iWv8EBGNNP8FdzZQDT0GpGgCnaBRmmfdS+5ejk5EB
on:
branch:
- /^preview\/\d+.\d+.\d+$/
- /^release\/\d+.\d+.\d+$/
CI_WINDOWS: true
- provider: GitHub
auth_token: $(GH_TOKEN)
draft: true
prerelease: true
release: $(Version)
artifact: /.*\.zip/
on:
branch:
- /^preview\/\d+.\d+.\d+$/
CI_WINDOWS: true
- provider: GitHub
auth_token: $(GH_TOKEN)
draft: true
release: $(Version)
artifact: /.*\.zip/
on:
branch:
- /^release\/\d+.\d+.\d+$/
CI_WINDOWS: true
for:
-
branches:
only:
- /^release\/\d+.\d+.\d+$/
on_success:
- cmd: semantic-release -b %APPVEYOR_REPO_BRANCH%