Skip to content

Commit

Permalink
#1340 updated appveyor.yml with workaround to make builds work again
Browse files Browse the repository at this point in the history
  • Loading branch information
david-kalbermatten authored and kzu committed Jun 30, 2023
1 parent 1c4c723 commit 02b798a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ init:

environment:
MSBUILD_LOGGER: C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll
SN_EXE: C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\x64\sn.exe
SNK_FILE: Moq.snk
FSHARPTYPES_DLL: .\tests\Moq.Tests\bin\Release\net472\Moq.Tests.FSharpTypes.dll

build_script:
- msbuild Moq.sln /r /t:Build;Test;Pack /logger:"%MSBUILD_LOGGER%"
- dotnet restore Moq.sln # --logger:"%MSBUILD_LOGGER%"
- dotnet build Moq.sln --configuration Release --no-restore # --logger:"%MSBUILD_LOGGER%"

test: off
before_test:
- call "%SN_EXE%" -R %FSHARPTYPES_DLL% %SNK_FILE%

test_script:
- dotnet test --no-build --configuration Release .\tests\Moq.Tests\Moq.Tests.csproj # --logger:"%MSBUILD_LOGGER%"

after_test:
- dotnet pack Moq.sln --no-build --no-restore --configuration Release --output out # --logger:"%MSBUILD_LOGGER%"

deploy:
- provider: NuGet
Expand Down

0 comments on commit 02b798a

Please sign in to comment.