-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathappveyor.yml
More file actions
26 lines (26 loc) · 1.35 KB
/
Copy pathappveyor.yml
File metadata and controls
26 lines (26 loc) · 1.35 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
image: Visual Studio 2022
environment:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
build_script:
- pwsh: |
Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile "./dotnet-install.ps1"
./dotnet-install.ps1 -JSonFile src/global.json -Architecture x64 -InstallDir 'C:\Program Files\dotnet'
- dotnet build src --configuration Release
- dotnet build IntegrationTests --configuration Release
# Test project-level build without $(SolutionDir)
- dotnet build src/ConsumingTests/ConsumingTests.csproj --configuration Release --force
- dotnet test src --configuration Release --no-build --no-restore --logger:trx --results-directory TestResults
- dotnet test IntegrationTests --configuration Release --no-build --no-restore --logger:trx --results-directory TestResults
- dotnet test src/ConsumingTests/ConsumingTests.csproj --configuration Release --no-build --no-restore --logger:trx --results-directory TestResults
on_finish:
- ps: |
Get-ChildItem TestResults\*.trx -ErrorAction SilentlyContinue | % {
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", $_.FullName)
}
on_failure:
- ps: Get-ChildItem *.received.* -recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
test: off
artifacts:
- path: nugets\*.nupkg