From 5a65b8ac2afbbc40efc31fd49a4ab10029d3c370 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Thu, 8 Dec 2022 16:03:51 +1100 Subject: [PATCH] Update SnippetExtractorTests.AppendUrlAsSnippet.verified.txt --- ...actorTests.AppendUrlAsSnippet.verified.txt | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/Tests/SnippetExtractor/SnippetExtractorTests.AppendUrlAsSnippet.verified.txt b/src/Tests/SnippetExtractor/SnippetExtractorTests.AppendUrlAsSnippet.verified.txt index 03c7c14f..e5d3eee2 100644 --- a/src/Tests/SnippetExtractor/SnippetExtractorTests.AppendUrlAsSnippet.verified.txt +++ b/src/Tests/SnippetExtractor/SnippetExtractorTests.AppendUrlAsSnippet.verified.txt @@ -3,23 +3,32 @@ Key: appveyor.yml, Language: yml, Value: -image: Visual Studio 2022 +image: +- Visual Studio 2022 +- macOS environment: DOTNET_CLI_TELEMETRY_OPTOUT: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true build_script: - pwsh: | - 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' + 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 + sudo ./dotnet-install.sh --jsonfile src/global.json --architecture x64 --install-dir '/usr/local/share/dotnet' + } - dotnet build src --configuration Release --nologo - dotnet test src --configuration Release --no-build --no-restore --nologo test: off -artifacts: -- path: nugets/*.nupkg on_failure: - - ps: Get-ChildItem *.received.* -recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }, + - ps: Get-ChildItem *.received.* -recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } +artifacts: +- path: nugets/*.nupkg, Error: , - FileLocation: https://raw.githubusercontent.com/SimonCropp/MarkdownSnippets/master/src/appveyor.yml(1-15), + FileLocation: https://raw.githubusercontent.com/SimonCropp/MarkdownSnippets/master/src/appveyor.yml(1-24), IsInError: false } ] \ No newline at end of file