1version: 1.0.{build}
2image:
3- Visual Studio 2017
4- Visual Studio 2015
5test: off
6build:
7  parallel: true
8platform:
9- x64
10environment:
11  matrix:
12  - PYTHON: 36
13    CPP: 14
14    CONFIG: Release
15    SHARED: OFF
16  - PYTHON: 36
17    CPP: 14
18    CONFIG: Release
19    SHARED: ON
20  - PYTHON: 36
21    CPP: latest
22    CONFIG: Release
23    SHARED: OFF
24  - PYTHON: 36
25    CPP: latest
26    CONFIG: Release
27    SHARED: ON
28matrix:
29  exclude:
30    - image: Visual Studio 2015
31      CPP: latest
32    - image: Visual Studio 2017
33      CPP: 14
34install:
35- ps: |
36    if ($env:PLATFORM -eq "x64") { $env:CMAKE_ARCH = "x64" }
37    if ($env:APPVEYOR_JOB_NAME -like "*Visual Studio 2017*") {
38      $env:CMAKE_GENERATOR = "Visual Studio 15 2017"
39    } else {
40      $env:CMAKE_GENERATOR = "Visual Studio 14 2015"
41    }
42    if ($env:PYTHON) {
43      if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
44      $env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
45    }
46build_script:
47- mkdir build
48- cd build
49- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%" -DBUILD_SHARED_LIBS=%SHARED% -DBUILD_EIGEN3=ON -DBUILD_GLEW=ON -DBUILD_GLFW=ON -DBUILD_JPEG=ON -DBUILD_JSONCPP=ON -DBUILD_PNG=ON ../src
50- cmake --build . --config %CONFIG% --target INSTALL
51# The following script has issues on SHARED = "ON"
52# - cd lib/Release/Tutorial/Basic && python file_io.py
53artifacts:
54  # Archive the generated packages in the ci.appveyor.com build report.
55- path:  build\lib\Release\open3d.cp36-win_amd64.pyd
56