1
+ dist : trusty
2
+ sudo : required
3
+
4
+
1
5
language : python
2
6
3
7
cache :
@@ -6,102 +10,57 @@ cache:
6
10
7
11
matrix :
8
12
include :
9
- # - os: linux
10
- # python: "2.7"
11
- # env:
12
- # - PCL_VERSION="1.7"
13
- # - os: linux
14
- # python: "3.4"
15
- # env:
16
- # - PCL_VERSION="1.7"
17
- # - os: linux
18
- # python: "3.5"
19
- # env:
20
- # - PCL_VERSION="1.7"
21
13
- os : linux
22
14
python : " 2.7"
23
15
env :
24
- - PCL_VERSION="1.8 "
16
+ - PCL_VERSION="1.7 "
25
17
- os : linux
26
18
python : " 3.4"
27
19
env :
28
- - PCL_VERSION="1.8 "
20
+ - PCL_VERSION="1.7 "
29
21
- os : linux
30
22
python : " 3.5"
31
23
env :
32
- - PCL_VERSION="1.8"
33
-
24
+ - PCL_VERSION="1.7"
34
25
# TravisCI TimeLimit 50min
35
- # numpy error
36
- # - os: osx
37
- # language: generic
26
+ # - os: linux
27
+ # python: "2.7"
38
28
# env:
39
- # - PYTHON_VERSION=2.7.10
40
- # - PYENV_ROOT=~/.pyenv
41
- # - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
42
- # - os: osx
43
- # language: generic
29
+ # - PCL_VERSION="1.8"
30
+ # - os: linux
31
+ # python: "3.4"
44
32
# env:
45
- # - PYTHON_VERSION=3.4.3
46
- # - PYENV_ROOT=~/.pyenv
47
- # - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
48
- # - os: osx
49
- # language: generic
33
+ # - PCL_VERSION="1.8"
34
+ # - os: linux
35
+ # python: "3.5"
50
36
# env:
51
- # - PYTHON_VERSION=3.5.1
52
- # - PYENV_ROOT=~/.pyenv
53
- # - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
37
+ # - PCL_VERSION="1.8"
54
38
55
- # travis_wait 45 brew install pcl --without-vtk --without-qt;
56
- # use pcl version 1.7
57
- # sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl -y;
58
- # sudo apt-get update -y;
59
- # sudo apt-get install libpcl-all -y;
60
- # use pcl 1.8(Ubuntu)
61
- # sudo apt-get update -y;
62
- # git clone https://github.com/PointCloudLibrary/pcl.git pcl-trunk;
63
- # ln -s pcl-trunk pcl -y;
64
- # sudo apt-get install g++ -y;
65
- # sudo apt-get install cmake cmake-gui -y;
66
- # sudo apt-get install doxygen -y;
67
- # sudo apt-get install mpi-default-dev openmpi-bin openmpi-common -y;
68
- # sudo apt-get install libflann1.8 libflann-dev -y;
69
- # sudo apt-get install libeigen3-dev -y;
70
- # sudo apt-get install libboost-all-dev -y;
71
- # sudo apt-get install libvtk5.8-qt4 libvtk5.8 libvtk5-dev -y;
72
- # sudo apt-get install libqhull* -y;
73
- # sudo apt-get install libusb-dev -y;
74
- # sudo apt-get install libgtest-dev -y;
75
- # sudo apt-get install git-core freeglut3-dev pkg-config -y;
76
- # sudo apt-get install build-essential libxmu-dev libxi-dev -y;
77
- # sudo apt-get install libusb-1-0-dev graphviz mono-complete -y;
78
- # sudo apt-get install qt-sdk openjdk-7-jdk openjdk-7-jre -y;
79
- # sudo apt-get install phonon-backend-gstreamer -y;
80
- # sudo apt-get install phonon-backend-vlc -y;
81
- # sudo apt-get install libpcap-dev -y;
82
- # cd pcl;
83
- # mkdir build;
84
- # cd build;
85
- # cmake -DCMAKE_BUILD_TYPE=None -DBUILD_GPU=OFF -DBUILD_apps=ON -DBUILD_examples=ON .. ;
86
- # travis_wait 45 make;
87
- # travis_wait 45 sudo make install;
88
- # https://github.com/hsean/Capstone-44-Object-Segmentation/wiki/PCL-1.8:-Ubuntu-14.04-Installation-Guide
89
- # Add OpenNI2?
90
- # sudo apt-get install -yV g++ python libusb-1.0.0-dev libudev-dev openjdk-6-jdk freeglut3-dev doxygen graphviz
91
- # git clone https://github.com/OpenNI/OpenNI2.git
92
- # cd OpenNI2
93
- # make
94
- # cd Packaging
95
- # python ./ReleaseVersion.py x86
96
- # cd OpenNI-Linux-x86-2.2
97
- # cp -a Include /usr/local/include/ni2
98
- # cp -a Redist /usr/local/lib/ni2
99
- # cd ../../..
100
- # other
101
- # sudo apt-get install openni2-utils
102
- # ##
39
+ # TravisCI TimeLimit 50min
40
+ - os : osx
41
+ language : generic
42
+ env :
43
+ - PYTHON_VERSION=2.7.10
44
+ - PYENV_ROOT=~/.pyenv
45
+ - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
46
+ - os : osx
47
+ language : generic
48
+ env :
49
+ - PYTHON_VERSION=3.4.3
50
+ - PYENV_ROOT=~/.pyenv
51
+ - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
52
+ - os : osx
53
+ language : generic
54
+ env :
55
+ - PYTHON_VERSION=3.5.1
56
+ - PYENV_ROOT=~/.pyenv
57
+ - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
58
+
59
+
60
+ # pcl 1.8.1 only(MacOSX/Ubuntu)
61
+ # pcl_2d-1.8.pc copy /usr/local/lib/pkgconfig/pcl_2d-1.8.pc
103
62
before_install :
104
- - if [[ $ TRAVIS_OS_NAME = "osx" ] ]; then
63
+ - if [ ${ TRAVIS_OS_NAME} = "osx" ]; then
105
64
brew update >/dev/null;
106
65
brew outdated pyenv || brew upgrade --quiet pyenv;
107
66
brew install homebrew/boneyard/pyenv-pip-rehash;
@@ -111,32 +70,55 @@ before_install:
111
70
pyenv global $PYTHON_VERSION;
112
71
python --version;
113
72
114
- brew search versions/pcl;
115
73
travis_wait 45 brew install pcl --without-qt;
74
+
75
+ cp -n ./travisCI/pcl_2d-1.8.pc /usr/local/lib/pkgconfig/pcl_2d-1.8.pc;
116
76
fi
117
77
118
- - if [[ $TRAVIS_OS_NAME = "linux" ]]; then
78
+ install :
79
+ - if [[ ( "$TRAVIS_OS_NAME" == "linux" ) && ( "$PCL_VERSION" == "1.7" ) ]]; then
119
80
sudo apt-get install openni2-utils
120
81
121
82
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl -y;
122
83
sudo apt-get update -y;
123
84
sudo apt-get install libpcl-all -y;
124
85
fi
125
-
126
-
127
- install :
86
+ - if [[ ( "$TRAVIS_OS_NAME" == "linux" ) && ( "$PCL_VERSION" == "1.8" ) ]]; then
87
+ sudo add-apt-repository -y ppa:webupd8team/java && sudo apt update && sudo apt -y install oracle-java8-installer;
88
+
89
+ sudo apt-get install zram-config;
90
+
91
+ sudo apt -y install g++ doxygen mpi-default-dev openmpi-bin openmpi-common libusb-1.0-0-dev libqhull* libusb-dev libgtest-dev;
92
+ sudo apt -y install git-core freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libphonon-dev libphonon-dev phonon-backend-gstreamer;
93
+ sudo apt -y install phonon-backend-vlc graphviz mono-complete qt-sdk libflann-dev libflann1.8 libboost-all-dev libeigen3-dev;
94
+
95
+ 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;
96
+ tar -xvf /tmp/cmake-3.6.2-Linux-x86_64.tar.gz;
97
+ export PATH=$PWD/cmake-3.6.2-Linux-x86_64/bin/:$PATH;
98
+
99
+ sudo dd if=/dev/zero of=/swapfile bs=1024 count=4194304;
100
+ sudo mkswap /swapfile;
101
+ sudo swapon /swapfile;
102
+
103
+ sudo apt-get install ninja-build;
104
+
105
+ wget https://github.com/PointCloudLibrary/pcl/archive/pcl-1.8.0.tar.gz;
106
+ tar -xf pcl-1.8.0.tar.gz;
107
+ cd pcl-pcl-1.8.0 && mkdir build && cd build;
108
+ 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 ..;
109
+
110
+ travis_wait 50 ninja -j4;
111
+ sudo ninja -t targets install;
112
+ cd ../..;
113
+ fi
128
114
- pip install --upgrade pip
129
115
- pip install cython==0.25.2
130
116
- pip install numpy
131
117
- pip install coveralls
132
118
- python setup.py build_ext -i
133
119
- python setup.py install
134
120
135
- # pcl base 1.7.2
136
- # - python examples/official/Recognition/cpython correspondence_grouping.py pcldata/tutorials/correspondence_grouping/milk.pcd pcldata/tutorials/correspondence_grouping/milk_cartoon_all_small_clorox.pcd
137
121
script :
138
- # - coverage run --source=test_pcl setup.py test
139
- # - coverage run tests/test_pcl.py
140
122
- coverage run --parallel-mode tests/test_pcl.py
141
123
- coverage run --parallel-mode tests/test_registration.py
142
124
# examples
0 commit comments