-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
46 lines (46 loc) · 1.21 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
version: '{build}'
image:
- Visual Studio 2022
- Ubuntu
skip_commits:
files:
- '.editorconfig'
- '*.md'
- '*.txt'
branches:
only:
- master
except:
- /.+[\-.]wip$/
- wip
pull_requests:
do_not_increment_build_number: true
skip_tags: true
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
install:
- cmd: curl -OsSL https://dot.net/v1/dotnet-install.ps1
- ps: |
if ($isWindows) {
./dotnet-install.ps1 -JsonFile global.json
./dotnet-install.ps1 -Version 6.0.11 -Runtime dotnet
}
- sh: curl -OsSL https://dot.net/v1/dotnet-install.sh
- sh: chmod +x dotnet-install.sh
- sh: ./dotnet-install.sh --jsonfile global.json
- sh: ./dotnet-install.sh --version 6.0.11 --runtime dotnet
- sh: export PATH="$HOME/.dotnet:$PATH"
before_build:
- dotnet --info
build_script:
- ps: |-
$id = ([datetimeoffset]$env:APPVEYOR_REPO_COMMIT_TIMESTAMP).ToUniversalTime().ToString('yyyyMMdd''t''HHmm')
if ($isWindows) { .\pack.cmd ci-$id } else { ./pack.sh ci-$id }
test_script:
- cmd: test.cmd
- ps: Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
- cmd: codecov.exe
- sh: ./test.sh
artifacts:
- path: dist\*.nupkg