-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathappveyor.yml
33 lines (24 loc) · 905 Bytes
/
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: 1.0.{build}
image:
- Visual Studio 2017
# - Visual Studio 2015
platform: x64
environment:
matrix:
- PLATFORM: x64
# - PLATFORM: x86
branches:
only:
- master
- devel
build_script:
- cmd: >-
dotnet restore DynamicInterop_csharp.sln
msbuild DynamicInterop.sln /p:Platform="Any CPU" /p:Configuration=Debug /consoleloggerparameters:ErrorsOnly
# Could not use dotnet build on appveyor: native test lib compilation leads to error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found
# dotnet build --configuration Debug --no-restore
# Running tests will be such that current directory is [...]\dynamic-interop-dll\DynamicInterop.Tests\bin\x64\Debug\netcoreapp2.0, so adapt DynamicInteropTestLibPath
test_script:
- cmd: >-
set DynamicInteropTestLibPath=..\..\..\..\..\x64\Debug
dotnet test DynamicInterop.Tests/DynamicInterop.Tests.csproj