forked from isl-org/Open3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
107 lines (101 loc) · 3.42 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
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/install-deps-ubuntu.sh assume-yes
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/install-deps-ubuntu.sh assume-yes
# 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
# - 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