forked from strawlab/python-pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
152 lines (130 loc) · 5.14 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
dist: trusty
sudo: required
language: python
cache:
- pip
- ccache
matrix:
include:
- os: linux
python: "2.7"
env:
- PCL_VERSION="1.7"
- os: linux
python: "3.4"
env:
- PCL_VERSION="1.7"
- os: linux
python: "3.5"
env:
- PCL_VERSION="1.7"
# TravisCI TimeLimit 50min
# - os: linux
# python: "2.7"
# env:
# - PCL_VERSION="1.8"
# - os: linux
# python: "3.4"
# env:
# - PCL_VERSION="1.8"
# - os: linux
# python: "3.5"
# env:
# - PCL_VERSION="1.8"
# TravisCI TimeLimit 50min
- os: osx
language: generic
env:
- PYTHON_VERSION=2.7.10
- PYENV_ROOT=~/.pyenv
- PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
- os: osx
language: generic
env:
- PYTHON_VERSION=3.4.3
- PYENV_ROOT=~/.pyenv
- PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
- os: osx
language: generic
env:
- PYTHON_VERSION=3.5.1
- PYENV_ROOT=~/.pyenv
- PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
# pcl 1.8.1 only(MacOSX/Ubuntu)
# pcl_2d-1.8.pc copy /usr/local/lib/pkgconfig/pcl_2d-1.8.pc
before_install:
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then
brew update >/dev/null;
brew outdated pyenv || brew upgrade --quiet pyenv;
brew install homebrew/boneyard/pyenv-pip-rehash;
brew tap homebrew/science;
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" pyenv install -ks $PYTHON_VERSION;
pyenv global $PYTHON_VERSION;
python --version;
travis_wait 45 brew install pcl --without-qt;
cp -n ./travisCI/pcl_2d-1.8.pc /usr/local/lib/pkgconfig/pcl_2d-1.8.pc;
fi
install:
- if [[ ( "$TRAVIS_OS_NAME" == "linux" ) && ( "$PCL_VERSION" == "1.7" ) ]]; then
sudo apt-get install openni2-utils
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl -y;
sudo apt-get update -y;
sudo apt-get install libpcl-all -y;
fi
- if [[ ( "$TRAVIS_OS_NAME" == "linux" ) && ( "$PCL_VERSION" == "1.8" ) ]]; then
sudo add-apt-repository -y ppa:webupd8team/java && sudo apt update && sudo apt -y install oracle-java8-installer;
sudo apt-get install zram-config;
sudo apt -y install g++ doxygen mpi-default-dev openmpi-bin openmpi-common libusb-1.0-0-dev libqhull* libusb-dev libgtest-dev;
sudo apt -y install git-core freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libphonon-dev libphonon-dev phonon-backend-gstreamer;
sudo apt -y install phonon-backend-vlc graphviz mono-complete qt-sdk libflann-dev libflann1.8 libboost-all-dev libeigen3-dev;
wget --no-check-certificate -qO- http://www.cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz -O /tmp/cmake-3.6.2-Linux-x86_64.tar.gz;
tar -xvf /tmp/cmake-3.6.2-Linux-x86_64.tar.gz;
export PATH=$PWD/cmake-3.6.2-Linux-x86_64/bin/:$PATH;
sudo dd if=/dev/zero of=/swapfile bs=1024 count=4194304;
sudo mkswap /swapfile;
sudo swapon /swapfile;
sudo apt-get install ninja-build;
wget https://github.com/PointCloudLibrary/pcl/archive/pcl-1.8.0.tar.gz;
tar -xf pcl-1.8.0.tar.gz;
cd pcl-pcl-1.8.0 && mkdir build && cd build;
cmake -G Ninja -DWITH_OPENGL:BOOL=OFF -DWITH_FZAPI:BOOL=OFF -DWITH_LIBUSB:BOOL=OFF -DWITH_VTK:BOOL=OFF -DBUILD_OPENNI:BOOL=OFF -DBUILD_OPENNI2:BOOL=OFF -DBUILD_apps:BOOL=OFF -DBUILD_geometry:BOOL=OFF -DBUILD_global_tests:BOOL=OFF -DBUILD_outofcore:BOOL=OFF -DBUILD_people:BOOL=OFF -DBUILD_tools:BOOL=OFF -DBUILD_tracking:BOOL=OFF -DBUILD_visualization:BOOL=OFF -DBUILD_examples:BOOL=OFF ..;
travis_wait 50 ninja -j4;
sudo ninja -t targets install;
cd ../..;
fi
- pip install --upgrade pip
- pip install cython==0.25.2
- pip install numpy
- pip install coveralls
- python setup.py build_ext -i
- python setup.py install
script:
- coverage run --parallel-mode tests/test_pcl.py
- coverage run --parallel-mode tests/test_registration.py
# examples
# - python examples/GrabberCallbackTest.py
# examples/official
# - python examples/official/grabber/openni_grabber.py
# # examples_command_172.txt
# # Filtering
# - python examples/official/Filtering/PassThroughFilter.py
# - python examples/official/Filtering/project_inliers.py
# - python examples/official/Filtering/remove_outliers.py -r Radius
# - python examples/official/Filtering/remove_outliers.py -r Condition
# - python examples/official/Filtering/VoxelGrid_160.py
# - python examples/official/Filtering/statistical_removal.py
# - python examples/official/IO/pcd_read.py
# # KdTree
# - python examples/official/kdtree/kdtree_search.py
# # keypoints
# # NG(RangeImage Link Error)
# - python examples/official/keypoints/narf_keypoint_extraction.py
# # octree
# - python examples/official/octree/octree_search.py
# - python examples/official/Segmentation/cluster_extraction.py
# - python examples/official/Segmentation/cylinder_segmentation.py
# - python examples/official/surface/concave_hull_2d.py
# - python examples/official/surface/resampling.py
after_success:
- coverage combine
- coveralls