-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
76 lines (63 loc) · 4.53 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
environment:
build_version: 5.7.0
version: $(build_version)-{build}
pull_requests:
do_not_increment_build_number: true
configuration: Release
image: Visual Studio 2022
skip_commits:
files:
- .github/
- '**/*.md'
install:
- ps: |
dotnet tool install -g InheritDocTool
Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1
./dotnet-install.ps1 -Channel 7.0
./dotnet-install.ps1 -Channel 8.0
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)
build_script:
- dotnet restore stashbox.extensions.dependencyinjection.sln
- dotnet build -c %configuration% /p:ContinuousIntegrationBuild=true stashbox.extensions.dependencyinjection.sln
after_build:
- inheritdoc -o
- dotnet pack -c %configuration% /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageOutputPath=..\..\artifacts src\stashbox.aspnetcore.hosting\stashbox.aspnetcore.hosting.csproj
- dotnet pack -c %configuration% /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageOutputPath=..\..\artifacts src\stashbox.extensions.dependencyinjection\stashbox.extensions.dependencyinjection.csproj
- dotnet pack -c %configuration% /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageOutputPath=..\..\artifacts src\stashbox.extensions.hosting\stashbox.extensions.hosting.csproj
- dotnet pack -c %configuration% /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageOutputPath=..\..\artifacts src\stashbox.aspnetcore.multitenant\stashbox.aspnetcore.multitenant.csproj
- dotnet pack -c %configuration% /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageOutputPath=..\..\artifacts src\stashbox.aspnetcore.testing\stashbox.aspnetcore.testing.csproj
test_script:
- dotnet test test\stashbox.extensions.dependencyinjection.specificationtests\stashbox.extensions.dependencyinjection.specificationtests.csproj -f netcoreapp3.1 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.extensions.dependencyinjection.specificationtests\stashbox.extensions.dependencyinjection.specificationtests.csproj -f net6.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.extensions.dependencyinjection.specificationtests\stashbox.extensions.dependencyinjection.specificationtests.csproj -f net7.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.extensions.dependencyinjection.specificationtests\stashbox.extensions.dependencyinjection.specificationtests.csproj -f net8.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.extensions.dependencyinjection.tests\stashbox.extensions.dependencyinjection.tests.csproj -f netcoreapp3.1 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.extensions.dependencyinjection.tests\stashbox.extensions.dependencyinjection.tests.csproj -f net6.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.extensions.dependencyinjection.tests\stashbox.extensions.dependencyinjection.tests.csproj -f net7.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.extensions.dependencyinjection.tests\stashbox.extensions.dependencyinjection.tests.csproj -f net8.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.aspnetcore.multitenant.tests\stashbox.aspnetcore.multitenant.tests.csproj -f netcoreapp3.1 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.aspnetcore.multitenant.tests\stashbox.aspnetcore.multitenant.tests.csproj -f net6.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.aspnetcore.multitenant.tests\stashbox.aspnetcore.multitenant.tests.csproj -f net7.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.aspnetcore.multitenant.tests\stashbox.aspnetcore.multitenant.tests.csproj -f net8.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.aspnetcore.testing.tests\stashbox.aspnetcore.testing.tests.csproj -f net6.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.aspnetcore.testing.tests\stashbox.aspnetcore.testing.tests.csproj -f net7.0 -c %CONFIGURATION% --no-build
- dotnet test test\stashbox.aspnetcore.testing.tests\stashbox.aspnetcore.testing.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:
on_build_success: false
on_build_failure: true
on_build_status_changed: true