forked from isl-org/Open3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
152 lines (143 loc) · 4.61 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
language: cpp
env:
global:
- SHARED=OFF
- BUILD_DEPENDENCY_FROM_SOURCE=OFF
- BUILD_TENSORFLOW_OPS=ON
- 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
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 headless and docs
- os: linux
dist: bionic
sudo: true
language: python
python: "3.6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- doxygen
- texlive
- texlive-latex-extra
- ghostscript
- pandoc
- libosmesa6-dev
install:
# Install ubuntu dependencies
- ./util/scripts/setup-linux.sh
# Install Kinect k4a package
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
- sudo apt-add-repository --yes https://packages.microsoft.com/ubuntu/18.04/prod
- sudo apt-get update
# Accept EULA using a temporary workaround
# https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1190#issuecomment-618473882
- DEBIAN_FRONTEND=noninteractive
- echo 'libk4a1.4 libk4a1.4/accepted-eula-hash string 0f5d5c5de396e4fee4c0753a21fee0c1ed726cf0316204edda484f08cb266d76' | sudo debconf-set-selections
- echo 'libk4a1.4 libk4a1.4/accept-eula boolean true' | sudo debconf-set-selections
- sudo apt-get --yes install libk4a1.4 libk4a1.4-dev k4a-tools
# Install Python dependencies for building docs
- which python
- python -V
- pip install -U -q "sphinx>=3.0" sphinx-rtd-theme nbsphinx Pillow
# m2r needs a patch for sphinx 3
# https://github.com/sphinx-doc/sphinx/issues/7420
- pip install -U -q git+https://github.com/intel-isl/m2r@dev#egg=m2r
script:
- mkdir build
- cd build
- |
cmake -DPYTHON_EXECUTABLE=`which python` \
-DENABLE_HEADLESS_RENDERING=ON \
-DENABLE_JUPYTER=ON \
-DENABLE_GUI=OFF \
-DBUILD_GLEW=ON \
-DBUILD_GLFW=ON \
-DWITH_OPENMP=ON \
-DBUILD_AZURE_KINECT=ON \
..
- make install-pip-package -j$NPROC
- make -j$NPROC
- bin/GLInfo
- python -c "from open3d import *; import open3d; print(open3d)"
- cd .. # Back to Open3D/
- travis_wait 40 ./util/scripts/make-documentation.sh
- ./.travis/deploy_docs.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
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
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
install: ./util/scripts/setup-linux.sh
script: ./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
# 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
# install: sudo apt-get update && sudo apt-get install -y realpath