-
Notifications
You must be signed in to change notification settings - Fork 139
/
appveyor.yml
76 lines (76 loc) · 1.96 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
version: '{build}'
image:
- Visual Studio 2022
- Ubuntu
branches:
only:
- master
except:
- /.+[\-.]wip$/
- wip
skip_commits:
files:
- '.git*'
- '*.md'
- '*.txt'
skip_tags: true
pull_requests:
do_not_increment_build_number: 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 }
- ps: if ($isWindows) { ./dotnet-install.ps1 -Runtime dotnet -Version 6.0.16 }
- 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 --runtime dotnet --version 6.0.16
- 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 }
after_build:
- ps: |
if ($isWindows) {
dotnet tool restore
dir dist\*.nupkg | % {
dotnet meziantou.validate-nuget-package --excluded-rules IconMustBeSet $_
if ($LASTEXITCODE) {
throw "Package validation failed: $_"
}
}
}
test_script:
- cmd: |
call test.cmd
curl -OsSL https://uploader.codecov.io/latest/windows/codecov.exe
codecov
- sh: ./test.sh
for:
-
matrix:
only:
- image: Visual Studio 2022
artifacts:
- path: dist\*.nupkg
- path: etc\coverage
deploy:
- provider: NuGet
server: https://www.myget.org/F/raboof/api/v2/package
api_key:
secure: fhGwXyO35FSshRzs5GWmF1LJTrd1sIqmS/jNCSfO2LfOciuYAKiXuFMYZFGiTAl+
symbol_server: https://www.myget.org/F/raboof/symbols/api/v2/package
on:
branch: master
notifications:
- provider: Email
to:
on_build_success: true
on_build_failure: true
on_build_status_changed: false