-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor.yml
73 lines (59 loc) · 2.12 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
environment:
github_auth_token:
secure: z/dKTRVRPmpItPTM/lYdX7dBJk3roDLV98Uj1XzpDqqV868xhHX8dnyKwPAJooUj
build_version: ''
skip_tags: true
skip_commits:
files:
- docs/
- .github/
- '**/*.md'
image: Visual Studio 2022
configuration: Release
install:
- ps: |
$env:build_version = Get-Content ".version"
Update-AppveyorBuild -Version "$env:build_version-preview-$env:appveyor_build_number"
dotnet tool install -g InheritDocTool
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1
./dotnet-install.ps1 -Channel 5.0
./dotnet-install.ps1 -Channel 7.0
./dotnet-install.ps1 -Channel 8.0
dotnet_csproj:
patch: true
file: 'src\stashbox.csproj'
version: $(build_version)
package_version: $(appveyor_build_version)
assembly_version: $(build_version)
file_version: $(build_version)
informational_version: $(build_version)
before_build:
- dotnet restore stashbox.sln
build_script:
- dotnet build -c %configuration% /p:ContinuousIntegrationBuild=true stashbox.sln
after_build:
- inheritdoc -o
- dotnet pack -c %configuration% /p:IncludeSymbols=true /p:PackageOutputPath=..\artifacts src\stashbox.csproj
test_script:
- dotnet test test\stashbox.tests.csproj -f net452 -c %configuration% --no-build
- dotnet test test\stashbox.tests.csproj -f netcoreapp3.1 -c %configuration% --no-build
- dotnet test test\stashbox.tests.csproj -f net5.0 -c %configuration% --no-build
- dotnet test test\stashbox.tests.csproj -f net6.0 -c %configuration% --no-build
- dotnet test test\stashbox.tests.csproj -f net7.0 -c %configuration% --no-build
- dotnet test test\stashbox.tests.csproj -f net8.0 -c %configuration% --no-build
artifacts:
- path: artifacts\Stashbox.*.nupkg
name: NuGet Packages
- path: artifacts\Stashbox.*.snupkg
name: NuGet Symbol Packages
notifications:
- provider: Email
to:
- peter.csajtai@outlook.com
on_build_success: false
on_build_failure: true
on_build_status_changed: true
- provider: Slack
auth_token:
secure: /KAOQIEOWc7w1EUl6J01qNam+f+ujntrwh53yJ0zg4qRWsdfWbkjKP2UG7tQDW7/hSVJHqF7Hz/IPdS6Cp5ilsfgH6xYroLB/sawQ/pdC5k=
channel: '#ci'