-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
appveyor.yml
53 lines (47 loc) · 1.69 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
# AppVeyor documentation https://www.appveyor.com/docs
version: "{build}"
image:
- macOS
- Ubuntu
- Visual Studio 2022
environment:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true
# Set the build number in MinVer.
MINVERBUILDMETADATA: build.%APPVEYOR_BUILD_NUMBER%
build_script:
# https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
- pwsh: |
if ($isWindows) {
Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile "./dotnet-install.ps1"
./dotnet-install.ps1 -JSonFile global.json -InstallDir 'C:\Program Files\dotnet'
}
else {
Invoke-WebRequest "https://dot.net/v1/dotnet-install.sh" -OutFile "./dotnet-install.sh"
sudo chmod u+x dotnet-install.sh
if ($isMacOS) {
sudo ./dotnet-install.sh --jsonfile global.json --install-dir '/usr/local/share/dotnet'
} else {
sudo ./dotnet-install.sh --jsonfile global.json --install-dir '/usr/share/dotnet'
}
}
- pwsh: dotnet tool restore
- pwsh: dotnet cake --target=Build
- pwsh: dotnet cake --target=Test
- pwsh: dotnet cake --target=Pack
test: off
artifacts:
- name: NuGet Packages
path: ./Artefacts/**/*.nupkg
- name: NuGet Symbol Packages
path: ./Artefacts/**/*.snupkg
- name: xUnit XML Test Results
path: ./Artefacts/**/*.xml
- name: xUnit HTML Test Results
path: ./Artefacts/**/*.html
- name: Code Coverage
path: ./Artefacts/**/*.cobertura.xml