forked from VerifyTests/Verify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
36 lines (35 loc) · 1.28 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
image:
- Visual Studio 2022
- macOS
- Ubuntu
build_script:
- pwsh: |
if ($isWindows) {
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'
}
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 src/global.json --architecture x64 --install-dir '/usr/local/share/dotnet'
} else {
sudo ./dotnet-install.sh --jsonfile src/global.json --architecture x64 --install-dir '/usr/share/dotnet'
}
}
- dotnet build src --configuration Release
- dotnet test src --configuration Release --no-build --no-restore
- pwsh: |
if ($isWindows) {
Set-Culture -CultureInfo de-DE
dotnet test src --configuration Release --no-build --no-restore
Set-TimeZone -Name "Russia TZ 2 Standard Time"
dotnet test src --configuration Release --no-build --no-restore
}
# begin-snippet: AppVeyorArtifacts
on_failure:
- ps: Get-ChildItem *.received.* -recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
# end-snippet
test: off
artifacts:
- path: nugets\*.nupkg