forked from isl-org/Open3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
135 lines (127 loc) · 4.37 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
language: cpp
env:
global:
- SHARED=OFF
- BUILD_DEPENDENCY_FROM_SOURCE=OFF
- BUILD_TENSORFLOW_OPS=ON
- BUILD_CUDA_MODULE=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
install: ./util/scripts/setup-linux.sh
script:
- mkdir build
- cd build
- cmake ..
- pip install -U yapf==0.28.0 nbformat
- 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:
- nproc
- mkdir build
- cd build
- |
cmake \
-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/
- ./util/scripts/make-documentation.sh
- ./.travis/deploy_docs.sh
- os: osx
osx_image: xcode11
env: BUILD_TENSORFLOW_OPS=ON BUILD_PYTORCH_OPS=ON LOW_MEM_USAGE=ON
install:
- echo "Travis processors:"
- nproc
- brew update
- brew upgrade python || true
#python@3 on Travis is 3.7
- /usr/local/opt/python@3/bin/pip3 install virtualenv
- /usr/local/opt/python@3/bin/python3 -m venv ~/py3env
- source ~/py3env/bin/activate
- ./util/scripts/install-deps-osx.sh
script: ./util/scripts/run-ci.sh
- os: osx
osx_image: xcode11.5
env: BUILD_TENSORFLOW_OPS=OFF BUILD_PYTORCH_OPS=OFF LOW_MEM_USAGE=ON
install:
- echo "Travis processors:"
- nproc
- brew update
- brew upgrade python || true
- /usr/local/opt/[email protected]/bin/pip3 install virtualenv
- /usr/local/opt/[email protected]/bin/python3 -m venv ~/py3env
- source ~/py3env/bin/activate
- ./util/scripts/install-deps-osx.sh
script: ./util/scripts/run-ci.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