-
-
Notifications
You must be signed in to change notification settings - Fork 521
/
appveyor.yml
36 lines (29 loc) · 1.04 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
# configuration for develop and master branch
branches:
only:
- develop
- master
- /v\d*\.\d*\.\d*/
image: Visual Studio 2022
test: false
pull_requests:
do_not_increment_build_number: false
install:
# Appveyor uses git checkout -qf FETCH_HEAD but all GitVersion versions above 5.6.3 doesn't support this detached header
# This is a workaround for this issue
- ps: |
if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT -ne "")
{
git checkout -qf $($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT)
}
- ps: Invoke-WebRequest 'https://dot.net/v1/dotnet-install.ps1' -OutFile 'dotnet-install.ps1'
- ps: ./dotnet-install.ps1 -Version 8.0.401 -InstallDir "C:\Program Files\dotnet"
build_script:
- cmd: dotnet --info
- cmd: build.cmd CI
after_build:
- ps: gci -Filter *.trx -Path .\TestResults\ | % { (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_.FullName)) }
artifacts:
- path: \artifacts\*.*
nuget:
disable_publish_on_pr: true