-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
50 lines (39 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: 2.0.{build}
environment:
matrix:
- VSVER: Visual Studio 11 2012 Win64
- VSVER: Visual Studio 12 2013 Win64
- VSVER: Visual Studio 14 2015 Win64
platform:
- x86
- x64
configuration:
- Release
install:
- choco install cmake
- choco upgrade cmake
- choco install nunit
- choco upgrade nunit
- choco install swig
- choco upgrade swig
- git submodule -q update --init
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
before_build:
- nuget restore TestSWIG.sln
- swig -c++ -csharp -namespace LibraryNamespace -I./CPP/Library/ -outdir CSharp/CSharpLibrary/ -o CSharp/CSharpWrapper/SimpleAPIWrapper.cxx CSharp/SimplifiedAPI.i
build:
project: TestSWIG.sln
after_build:
- ls C:\projects\testswig\build\release\
- msbuild C:\projects\testswig\CSharp\CSharpLibrary\CSharpLibrary.csproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild C:\projects\testswig\CSharp\Tests\Tests.csproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- ls C:\projects\testswig\build\release\
test_script:
- ps: if($env:PLATFORM -eq "x86") { nunit-console-x86 /config:Release C:\projects\testswig\CSharp\Tests\Tests.csproj }
- ps: if( $env:PLATFORM -eq "x64" ) { nunit-console /config:Release C:\projects\testswig\CSharp\Tests\Tests.csproj }
artifacts:
- path: Build\Release
name: release
type: zip