Skip to content

Commit 63c648d

Browse files
committed
Fix appveyor build image
1 parent 5134458 commit 63c648d

2 files changed

Lines changed: 21 additions & 8 deletions

File tree

Src/appveyor.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
version: 5.0.0.{build} # Only change for mayor versions (e.g. 6.0.0)
22
environment:
3-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
3+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
4+
DOTNET_CLI_TELEMETRY_OPTOUT: 1
5+
DOTNET_NOLOGO: true
46
matrix:
57
- job_name: windows
6-
appveyor_build_worker_image: Visual Studio 2022 # 2026 is not available yet
8+
appveyor_build_worker_image: Visual Studio 2022
79
- job_name: linux
810
appveyor_build_worker_image: Ubuntu
911
matrix:
@@ -22,8 +24,11 @@ for:
2224
# default is: core.autocrlf input
2325
- git config --global core.autocrlf true
2426
install:
27+
- ps: $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "true"
28+
- ps: $env:DOTNET_CLI_TELEMETRY_OPTOUT = "1"
29+
- ps: $env:DOTNET_NOLOGO = "true"
2530
- ps: Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "dotnet-install.ps1"
26-
- ps: .\dotnet-install.ps1 -Channel 10.0 -InstallDir "$env:ProgramFiles\dotnet"
31+
- ps: .\dotnet-install.ps1 -Channel 10.0 -InstallDir "$env:ProgramFiles\dotnet" -NoPath
2732
build_script:
2833
- ps: cd $env:APPVEYOR_BUILD_FOLDER\Src
2934
- ps: dotnet --version
@@ -57,14 +62,19 @@ for:
5762
matrix:
5863
only:
5964
- job_name: linux
65+
install:
66+
- export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
67+
- export DOTNET_CLI_TELEMETRY_OPTOUT=1
68+
- export DOTNET_NOLOGO=true
6069
build_script:
6170
- cd $APPVEYOR_BUILD_FOLDER/Src
62-
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 10.0
71+
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 10.0 --no-path
6372
- export PATH="$HOME/.dotnet:$PATH"
6473
- dotnet --version
6574
- dotnet restore --verbosity quiet
6675
- dotnet add ./MailMergeLib.Tests/MailMergeLib.Tests.csproj package AltCover
6776
- dotnet build MailMergeLib.sln /verbosity:minimal /t:rebuild /p:configuration=release /nowarn:CS1591,CS0618
6877
test_script:
6978
- dotnet test --framework net10.0 MailMergeLib.sln /p:configuration=release /p:AltCover=true /p:AltCoverXmlReport="coverage.xml" /p:AltCover=true /p:AltCoverStrongNameKey="../MailMergeLib/MailMergeLib.snk" /p:AltCoverAssemblyExcludeFilter="MailMergeLib.Tests|NUnit3.TestAdapter" /p:AltCoverLineCover="true"
70-
- bash <(curl -s https://codecov.io/bash) -f ./MailMergeLib.Tests/coverage.net10.0.xml -n net10.0linux
79+
- bash <(curl -s https://codecov.io/bash) -f ./MailMergeLib.Tests/coverage.net10.0.xml -n net10.0linux
80+
-

appveyor.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ environment:
33
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
44
matrix:
55
- job_name: windows
6-
appveyor_build_worker_image: Visual Studio 2026
6+
appveyor_build_worker_image: Visual Studio 2022
77
- job_name: linux
88
appveyor_build_worker_image: Ubuntu
99
matrix:
@@ -21,6 +21,9 @@ for:
2121
init:
2222
# default is: core.autocrlf input
2323
- git config --global core.autocrlf true
24+
install:
25+
- ps: Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile "dotnet-install.ps1"
26+
- ps: .\dotnet-install.ps1 -Channel 10.0 -InstallDir "$env:ProgramFiles\dotnet"
2427
build_script:
2528
- ps: cd $env:APPVEYOR_BUILD_FOLDER\Src
2629
- ps: dotnet --version
@@ -56,12 +59,12 @@ for:
5659
- job_name: linux
5760
build_script:
5861
- cd $APPVEYOR_BUILD_FOLDER/Src
59-
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 8.0
62+
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 10.0
6063
- export PATH="$HOME/.dotnet:$PATH"
6164
- dotnet --version
6265
- dotnet restore --verbosity quiet
6366
- dotnet add ./MailMergeLib.Tests/MailMergeLib.Tests.csproj package AltCover
6467
- dotnet build MailMergeLib.sln /verbosity:minimal /t:rebuild /p:configuration=release /nowarn:CS1591,CS0618
6568
test_script:
6669
- dotnet test --framework net10.0 MailMergeLib.sln /p:configuration=release /p:AltCover=true /p:AltCoverXmlReport="coverage.xml" /p:AltCover=true /p:AltCoverStrongNameKey="../MailMergeLib/MailMergeLib.snk" /p:AltCoverAssemblyExcludeFilter="MailMergeLib.Tests|NUnit3.TestAdapter" /p:AltCoverLineCover="true"
67-
- bash <(curl -s https://codecov.io/bash) -f ./MailMergeLib.Tests/coverage.net10.0.xml -n net10.0linux
70+
- bash <(curl -s https://codecov.io/bash) -f ./MailMergeLib.Tests/coverage.net10.0.xml -n net10.0linux

0 commit comments

Comments
 (0)