forked from devlooped/moq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
36 lines (27 loc) · 1.06 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
init:
- git config --global core.autocrlf input
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:
- dotnet restore Moq.sln # --logger:"%MSBUILD_LOGGER%"
- dotnet build Moq.sln --configuration Release --no-restore # --logger:"%MSBUILD_LOGGER%"
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
api_key:
secure: 5dsPohRA1/Bm/yD1DTUDZ5ZUAH7+jjWWcy6wnFZrWDKG4C8VOInfdWj/71SZgHYG
on:
appveyor_repo_tag: true
nuget:
project_feed: true
artifacts:
- path: 'out\*.nupkg'