File: .appveyor.yml

package info (click to toggle)
open3d 0.9.0%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 101,800 kB
  • sloc: cpp: 65,788; ansic: 6,818; python: 5,593; sh: 906; javascript: 213; makefile: 195; ruby: 52
file content (55 lines) | stat: -rw-r--r-- 1,686 bytes parent folder | download | duplicates (2)
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
51
52
53
54
55
version: 1.0.{build}
image:
- Visual Studio 2017
test: off
build:
  parallel: true
platform:
- x64
environment:
  matrix:
  - PYTHON: 36
    CONFIG: Release
    SHARED: OFF
  - PYTHON: 36
    CONFIG: Release
    SHARED: ON
  - PYTHON: 36
    CONFIG: Release
    SHARED: OFF
  - PYTHON: 36
    CONFIG: Release
    SHARED: ON
install:
- ps: |
    if ($env:PLATFORM -eq "x64") {
      $env:CMAKE_ARCH = "x64"
      $env:CMAKE_INSTALL_PREFIX = "C:\Program Files\Open3D"
    } else {
      $env:CMAKE_INSTALL_PREFIX = "C:\Program Files (x86)\Open3D"
    }
    $env:CMAKE_GENERATOR = "Visual Studio 15 2017"
    if ($env:PYTHON) {
      if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
      $env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
    }
build_script:
- git submodule update --init --recursive
- mkdir build
- cd build
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%" -DCMAKE_INSTALL_PREFIX="%CMAKE_INSTALL_PREFIX%" -DBUILD_SHARED_LIBS=%SHARED% -DBUILD_EIGEN3=ON -DBUILD_GLEW=ON -DBUILD_GLFW=ON -DBUILD_JPEG=ON -DBUILD_JSONCPP=ON -DBUILD_PNG=ON ..
- cmake --build . --parallel %NUMBER_OF_PROCESSORS% --config %CONFIG% --target INSTALL

# Test cmake install
- cd ..\docs\_static\C++
- mkdir build
- cd build
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%" -DCMAKE_INSTALL_PREFIX="%CMAKE_INSTALL_PREFIX%" -DBUILD_SHARED_LIBS=%SHARED% ..
- cmake --build . --config %CONFIG%
- Release\TestVisualizer

# The following script has issues on SHARED = "ON"
# - cd lib/Release/Tutorial/Basic && python file_io.py
artifacts:
  # Archive the generated packages in the ci.appveyor.com build report.
- path:  build\lib\Release\open3d.cp36-win_amd64.pyd