forked from isl-org/Open3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
131 lines (119 loc) · 3.45 KB
/
.travis.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
language: ruby
env:
global:
- SHARED=OFF
- BUILD_DEPENDENCY_FROM_SOURCE=OFF
- NPROC=2
notifications:
email:
on_success: never
on_failure: always
matrix:
include:
# Style check only
- os: linux
dist: bionic
sudo: true
language: python
python: "3.6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- clang-7
- clang-format-5.0
before_install: ./util/scripts/setup-linux.sh
script:
- mkdir build
- cd build
- cmake -DPYTHON_EXECUTABLE=`which python` ..
- pip install -U yapf==0.28.0
- make check-style
# Build docs only
- os: linux
dist: bionic
sudo: true
language: python
python: "3.6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- doxygen
before_install: ./util/scripts/setup-linux.sh
script:
- mkdir build
- cd build
- which python
- python -V
- pip install -U -q sphinx sphinx-rtd-theme
- cmake -DPYTHON_EXECUTABLE=`which python` ..
- make install-pip-package -j$NPROC
- python -c "from open3d import *; import open3d; print(open3d)"
- ../util/scripts/make-documentation.sh
# SHARED=ON, BUILD_DEPENDENCY_FROM_SOURCE=OFF
- os: linux
dist: bionic
sudo: required
language: python
python: "3.5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
env: SHARED=ON
before_install: ./util/scripts/setup-linux.sh
script: ./util/scripts/run-travis.sh
# SHARED=OFF, BUILD_DEPENDENCY_FROM_SOURCE=ON
- os: linux
dist: bionic
sudo: required
language: python
python: "3.6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
env: BUILD_DEPENDENCY_FROM_SOURCE=ON
before_install: ./util/scripts/setup-linux.sh
script: ./util/scripts/run-travis.sh
# SHARED=ON, BUILD_DEPENDENCY_FROM_SOURCE=ON
- os: linux
dist: bionic
sudo: required
language: python
python: "3.7" # bionic has Python 3.7 on travis
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
env: SHARED=ON BUILD_DEPENDENCY_FROM_SOURCE=ON
before_install: ./util/scripts/setup-linux.sh
script: ./util/scripts/run-travis.sh
# Default environment of macOS 10.13 High Sierra
# compiled using clang shipped with xcode10.1
- os: osx
osx_image: xcode10.1
before_install:
- ./util/scripts/install-deps-osx.sh
script: travis_wait 40 ./util/scripts/run-travis.sh
- os: osx
osx_image: xcode10.1
env: BUILD_DEPENDENCY_FROM_SOURCE=ON
script: travis_wait 40 ./util/scripts/run-travis.sh
# - env: DOCKER=YES UBUNTU=16.04 BUNDLE=deps ENV=py3 LINK=STATIC
# script: ./util/docker/open3d-test/tools/test.sh $UBUNTU $BUNDLE $ENV $LINK
# before_install: sudo apt-get update && sudo apt-get install -y realpath
# - env: DOCKER=YES UBUNTU=16.04 BUNDLE=deps ENV=py3 LINK=SHARED
# script: ./util/docker/open3d-test/tools/test.sh $UBUNTU $BUNDLE $ENV $LINK
# before_install: sudo apt-get update && sudo apt-get install -y realpath