summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 091d30bce0721a63ef4f30189a9ecfbf146be2a5 (plain)
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
dist: trusty
sudo: required


language: python 

cache:
  - pip
  - ccache

# https://docs.travis-ci.com/user/languages/cpp/
matrix:
  include:
    # gcc
    # - os: linux
    #   python: "2.7"
    #   env:
    #   - PCL_VERSION="1.7"
    #   - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
    # - os: linux
    #   python: "3.4"
    #   env:
    #   - PCL_VERSION="1.7"
    #   - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
    # - os: linux
    #   python: "3.5"
    #   env:
    #   - PCL_VERSION="1.7"
    #   - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
    # gcc?
    - os: linux
      python: "2.7"
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-4.9
      env:
      - PCL_VERSION="1.7"
      - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
      - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
    - os: linux
      python: "3.4"
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-4.9
      env:
      - PCL_VERSION="1.7"
      - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
      - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
    - os: linux
      python: "3.5"#
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-4.9
      env:
      - PCL_VERSION="1.7"
      - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
      - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"

    # clang
    # apt-get no pcl use gcc
    # - os: linux
    #   python: "2.7"
    #   env:
    #   - PCL_VERSION="1.7"
    #   - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
    #   addons:
    #     apt:
    #       sources:
    #         - ubuntu-toolchain-r-test
    #         - llvm-toolchain-precise-3.6
    #       packages:
    #         - clang-3.6
    #   env:
    #   - PCL_VERSION="1.7"
    #   - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
    #   - MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"
    # - os: linux
    #   python: "3.4"
    #   addons:
    #     apt:
    #       sources:
    #         - ubuntu-toolchain-r-test
    #         - llvm-toolchain-precise-3.6
    #       packages:
    #         - clang-3.6
    #   env:
    #   - PCL_VERSION="1.7"
    #   - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
    #   - MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"
    # - os: linux
    #   python: "3.5"
    #   addons:
    #     apt:
    #       sources:
    #         - ubuntu-toolchain-r-test
    #         - llvm-toolchain-precise-3.6
    #       packages:
    #         - clang-3.6
    #   env:
    #   - PCL_VERSION="1.7"
    #   - NOSEATTR="not pcl_ver_0_4 and not pcl_over_18"
    #   - MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"

    # 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
    # gcc
    - os: osx
      language: generic
      compiler: gcc
      env:
      - PYTHON_VERSION=2.7.10
      - PYENV_ROOT=~/.pyenv
      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
      - NOSEATTR="not pcl_ver_0_4"
    - os: osx
      language: generic
      compiler: gcc
      env:
      - PYTHON_VERSION=3.4.3
      - PYENV_ROOT=~/.pyenv
      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
      - NOSEATTR="not pcl_ver_0_4"
    - os: osx
      language: generic
      compiler: gcc
      env:
      - PYTHON_VERSION=3.5.1
      - PYENV_ROOT=~/.pyenv
      - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
      - NOSEATTR="not pcl_ver_0_4"
    # clang
    # homebrew pcl use gcc compiler
    # - os: osx
    #   language: generic
    #   compiler: clang
    #   env:
    #   - PYTHON_VERSION=2.7.10
    #   - PYENV_ROOT=~/.pyenv
    #   - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
    #   - NOSEATTR="not pcl_ver_0_4"
    # - os: osx
    #   language: generic
    #   compiler: clang
    #   env:
    #   - PYTHON_VERSION=3.4.3
    #   - PYENV_ROOT=~/.pyenv
    #   - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
    #   - NOSEATTR="not pcl_ver_0_4"
    # - os: osx
    #   language: generic
    #   compiler: clang
    #   env:
    #   - PYTHON_VERSION=3.5.1
    #   - PYENV_ROOT=~/.pyenv
    #   - PATH=$PYENV_ROOT/shims:$PATH:$PYENV_ROOT/bin
    #   - NOSEATTR="not pcl_ver_0_4"


# 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;
      
      ls /usr/local/include;
      
      cp -n ./travisCI/pcl_2d-1.8.pc /usr/local/lib/pkgconfig/pcl_2d-1.8.pc;
    fi

# eval "${MATRIX_EVAL}";
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;

      eval "${MATRIX_EVAL}";
    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 nose
  - 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
  # - nosetests -A "$NOSEATTR" --with-coverage --cover-erase --cover-package=python-pcl --verbose
  # - nosetests -A "not pcl_ver_0_4 and not pcl_over_18" --with-coverage --cover-erase --cover-package=python-pcl --verbose
  - nosetests -A "not pcl_ver_0_4 and not pcl_over_18" --verbose
  
  # 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