forked from Pkcs11Interop/Pkcs11Interop.X509Store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
33 lines (27 loc) · 1.46 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
version: 0.3-{build}
branches:
only:
- master
skip_tags: true
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
Platform: net461
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
Platform: netstandard2.0
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
Platform: netstandard2.0
- APPVEYOR_BUILD_WORKER_IMAGE: macos
Platform: netstandard2.0
build_script:
- cmd: cd build && nuget-build.bat
- sh: dotnet --info && dotnet restore -p:Configuration=Release -p:Platform="Any CPU" -v normal ./src/ && dotnet build -p:Configuration=Release -p:Platform="Any CPU" -v normal ./src/
test_script:
- cmd: IF "%Platform%"=="net461" (nunit3-console .\src\Pkcs11Interop.X509Store.Tests\bin\Release\net48\Pkcs11Interop.X509Store.Tests.dll --result=myresults.xml;format=AppVeyor)
- cmd: IF "%Platform%"=="netstandard2.0" (cd .\src\Pkcs11Interop.X509Store.Tests\ && nuget install Appveyor.TestLogger && cd ..\..)
- cmd: IF "%Platform%"=="netstandard2.0" (dotnet vstest .\src\Pkcs11Interop.X509Store.Tests\bin\Release\netcoreapp3.1\Pkcs11Interop.X509Store.Tests.dll --Framework:".NETCoreApp,Version=v3.1" --TestAdapterPath:. --logger:Appveyor)
- sh: cd ./src/Pkcs11Interop.X509Store.Tests/ && nuget install -Source https://api.nuget.org/v3/index.json Appveyor.TestLogger && cd ../..
- sh: dotnet test -f netcoreapp3.1 --test-adapter-path:. --logger:Appveyor ./src/Pkcs11Interop.X509Store.Tests/
artifacts:
- path: build/nuget-unsigned/
name: Pkcs11Interop.X509Store