Repository navigation
Expand file tree
/
Copy pathappveyor.yml
More file actions
37 lines (29 loc) · 1.43 KB
/
Copy pathappveyor.yml
File metadata and controls
37 lines (29 loc) · 1.43 KB
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
version: 2.0.{build}
image: Visual Studio 2022
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
# keep the assembly/package version patching previously configured in the AppVeyor UI
dotnet_csproj:
patch: true
file: src\DeviceDetector.NET\DeviceDetector.NET.csproj
version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
install:
# the projects target net10.0, which is newer than the SDKs preinstalled on the image
- ps: Invoke-WebRequest https://dot.net/v1/dotnet-install.ps1 -OutFile "$env:TEMP\dotnet-install.ps1"
- ps: '& "$env:TEMP\dotnet-install.ps1" -Channel 10.0 -InstallDir "C:\dotnet10"'
- ps: Set-AppveyorBuildVariable -Name PATH -Value "C:\dotnet10;$env:PATH"
- dotnet --info
build_script:
- dotnet restore DeviceDetector.NET.sln
- dotnet build DeviceDetector.NET.sln -c Release --no-restore
test_script:
- dotnet test tests\DeviceDetector.NET.Tests\DeviceDetector.NET.Tests.csproj -c Release --no-build
- dotnet test tests\Serilog.Enrichers.AspNetCore.DeviceDetector.Tests\Serilog.Enrichers.AspNetCore.DeviceDetector.Tests.csproj -c Release --no-build
after_build:
- dotnet pack src\DeviceDetector.NET\DeviceDetector.NET.csproj -c Release --no-build -o artifacts
- dotnet pack src\Serilog.Enrichers.AspNetCore.DeviceDetector\Serilog.Enrichers.AspNetCore.DeviceDetector.csproj -c Release --no-build -o artifacts
artifacts:
- path: artifacts\*.nupkg