-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
47 lines (47 loc) · 1.79 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
environment:
build_version: 9.2.0
version: $(build_version)-{build}
image: Visual Studio 2022
configuration: Release
skip_commits:
files:
- .github/
- '**/*.md'
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: $(build_version)
package_version: $(build_version)
assembly_version: $(build_version)
file_version: $(build_version)
informational_version: $(build_version)
install:
- ps: |
dotnet tool install -g InheritDocTool
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1
./dotnet-install.ps1 -Channel 8.0
build_script:
- cmd: echo __BUILD__
- dotnet restore src/ConfigCatClient.sln
- dotnet build -c %configuration% /p:ContinuousIntegrationBuild=true src/ConfigCatClient.sln
after_build:
- cmd: echo __PACK__
- inheritdoc -o
- dotnet pack -c %configuration% --no-build /p:PackageOutputPath=..\..\artifacts src\ConfigCatClient\ConfigCatClient.csproj
test_script:
- dotnet test src\ConfigCat.Client.Tests\ConfigCat.Client.Tests.csproj -f net45 -c %configuration% --no-build
- dotnet test src\ConfigCat.Client.Tests\ConfigCat.Client.Tests.csproj -f net461 -c %configuration% --no-build
- dotnet test src\ConfigCat.Client.Tests\ConfigCat.Client.Tests.csproj -f netcoreapp3.1 -c %configuration% --no-build
- dotnet test src\ConfigCat.Client.Tests\ConfigCat.Client.Tests.csproj -f net5.0 -c %configuration% --no-build
- dotnet test src\ConfigCat.Client.Tests\ConfigCat.Client.Tests.csproj -f net6.0 -c %configuration% --no-build
- dotnet test src\ConfigCat.Client.Tests\ConfigCat.Client.Tests.csproj -f net8.0 -c %configuration% --no-build
artifacts:
- path: artifacts\ConfigCat.Client.*.*nupkg
name: NuGet
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: true
on_build_status_changed: false