This repository has been archived by the owner on Dec 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 700
/
appveyor.yml
254 lines (224 loc) · 9.66 KB
/
appveyor.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
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
os:
- Windows Server 2012 R2
environment:
# global:
# # remove?
# # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# # /E:ON and /V:ON options are not enabled in the batch script intepreter
# # See: http://stackoverflow.com/a/13751649/163740
# CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
# https://www.appveyor.com/docs/windows-images-software/
matrix:
- PYTHON: "C:\\Miniconda34-x64"
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "64"
PCL_ROOT: "C:\\Program Files\\PCL 1.6.0"
PCL_VERSION: "1.6"
OPENNI_VERSION: "1.3.2"
OPENNI_ROOT: "C:\\Program Files\\OpenNI\\Bin64"
APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI\\x64\\Bin64"
NOSEATTR: "not pcl_ver_0_4 and not pcl_over_17 and not pcl_over_18"
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# PYTHON: "C:\\Miniconda-x64"
# PYTHON_VERSION: "2.7"
# PYTHON_ARCH: "64"
# PCL_ROOT: "C:\\Program Files\\PCL 1.8.1"
# PCL_VERSION: "1.8"
# OPENNI_VERSION: "2.2"
# OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
# APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
# NOSEATTR: "not pcl_ver_0_4"
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# PYTHON: "C:\\Miniconda-x64"
# PYTHON_VERSION: "2.7"
# PYTHON_ARCH: "64"
# PCL_ROOT: "C:\\Program Files\\PCL 1.8.1"
# PCL_VERSION: "1.8"
# OPENNI_VERSION: "2.2"
# OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
# APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
# NOSEATTR: "not pcl_ver_0_4"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
PCL_ROOT: "C:\\Program Files\\PCL 1.8.1"
PCL_VERSION: "1.8"
OPENNI_VERSION: "2.2"
OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
NOSEATTR: "not pcl_ver_0_4"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
PCL_ROOT: "C:\\Program Files\\PCL 1.8.1"
PCL_VERSION: "1.8"
OPENNI_VERSION: "2.2"
OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
NOSEATTR: "not pcl_ver_0_4"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
PCL_ROOT: "C:\\Program Files\\PCL 1.8.1"
PCL_VERSION: "1.8"
OPENNI_VERSION: "2.2"
OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
NOSEATTR: "not pcl_ver_0_4"
# Python 3.5 not support 2017
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# PYTHON: "C:\\Miniconda35-x64"
# PYTHON_VERSION: "3.5"
# PYTHON_ARCH: "64"
# PCL_ROOT: "C:\\Program Files\\PCL 1.8.1"
# PCL_VERSION: "1.8"
# OPENNI_VERSION: "2.2"
# OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
# APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
# NOSEATTR: "not pcl_ver_0_4"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
PCL_ROOT: "C:\\Program Files\\PCL 1.8.1"
PCL_VERSION: "1.8"
OPENNI_VERSION: "2.2"
OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
NOSEATTR: "not pcl_ver_0_4"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
PCL_ROOT: "C:\\Program Files\\PCL 1.8.1"
PCL_VERSION: "1.8"
OPENNI_VERSION: "2.2"
OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
NOSEATTR: "not pcl_ver_0_4"
# Python 3.5 not support 2017
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# PYTHON: "C:\\Miniconda35-x64"
# PYTHON_VERSION: "3.5"
# PYTHON_ARCH: "64"
# PCL_ROOT: "C:\\Program Files\\PCL 1.9.1"
# PCL_VERSION: "1.9"
# OPENNI_VERSION: "2.2"
# OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
# APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
# NOSEATTR: "not pcl_ver_0_4"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
PCL_ROOT: "C:\\Program Files\\PCL 1.9.1"
PCL_VERSION: "1.9"
OPENNI_VERSION: "2.2"
OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
NOSEATTR: "not pcl_ver_0_4"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
PCL_ROOT: "C:\\Program Files\\PCL 1.9.1"
PCL_VERSION: "1.9"
OPENNI_VERSION: "2.2"
OPENNI_ROOT: "C:\\Program Files\\OpenNI2\\Redist\\"
APPVEYOR_OPENNI_ROOT: ".\\AppVeyor\\OpenNI2\\x64\\Redist"
NOSEATTR: "not pcl_ver_0_4"
install:
# If there is a newer build queued for the same PR, cancel this one.
# The AppVeyor 'rollout builds' option is supposed to serve the same
# purpose but it is problematic because it tends to cancel builds pushed
# directly to master instead of just PR builds (or the converse).
# credits: JuliaLang developers.
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
# Python(set before conda command call)
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PYTHON%\\Lib\\site-packages;%PATH%;"
# Install the build dependencies of the project. If some dependencies contain
# compiled extensions and are not provided as pre-built wheel packages,
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
# - "%CMD_IN_ENV% python -m pip install -r dev-requirements.txt"
# - "pip install wheel"
# - if [%PCL_VERSION%]==[1.6] anaconda search -t conda vc 10.*
# - if [%PCL_VERSION%]==[1.6] conda install -y -q anaconda-client
# - if [%PCL_VERSION%]==[1.6] SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PYTHON%\\Lib\\site-packages;%PATH%
- "conda install -y -q wheel"
# conda(comment out effective whl files?)
# - conda install -y -q Cython
# - conda install -y -q numpy
- pip install -r requirements.txt
# Mini-conda ng
# - "pip install --upgrade setuptools"
# - conda install -y -q setuptools
# use Visual Studio 2017?(over 34.4.0.)
# under 36.2.2
- conda install -y -q setuptools
# - "pip install --disable-pip-version-check --user --upgrade pip"
# PCL
- "SET PATH=%PCL_ROOT%\\bin;%PCL_ROOT%\\3rdParty\\VTK\\bin;%OPENNI_ROOT%;%PATH%;"
# PCL Install
- ps : appveyor\install.ps1
# pkg-config Download
- cd pkg-config
# - ps : .\Install-GTKPlus.ps1
- InstallWindowsGTKPlus.bat
- cd ..
build_script:
- if [%PCL_VERSION%]==[1.6] copy .\\appveyor\\bfgs.h "%PCL_ROOT%\include\pcl-%PCL_VERSION%\pcl\registration\bfgs.h"
- if [%PCL_VERSION%]==[1.6] copy .\\appveyor\\eigen.h "%PCL_ROOT%\include\pcl-%PCL_VERSION%\pcl\registration\eigen.h"
- python setup.py build_ext -i
- python setup.py install
# - python setup.py sdist bdist_wheel
# - python -m pip list
- if [%PCL_VERSION%]==[1.6] copy "%APPVEYOR_OPENNI_ROOT%" .
- if [%PCL_VERSION%]==[1.6] copy "%APPVEYOR_OPENNI_ROOT%" "%PYTHON%"
- if [%PCL_VERSION%]==[1.6] copy "%APPVEYOR_OPENNI_ROOT%" "%PYTHON%\DLLs"
- if [%PCL_VERSION%]==[1.6] copy "%APPVEYOR_OPENNI_ROOT%" "%PYTHON%\Lib\site-packages"
test_script:
# - python tests\test_pcl.py
# - python tests\test_registration.py
- nosetests -A "%NOSEATTR%" --verbose
# - python examples\official\Filtering\PassThroughFilter.py
# - python examples\official\Filtering\project_inliers.py
# - python examples\official\Filtering\remove_outliers.py -r Radius
# # MemoryLeak?
# - 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
# execute NG
# Exception ignored in: 'pcl._pcl.to_point_t'
# TypeError: a float is required
# - 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_test:
# If tests are successful, create binary packages for the project.
- python setup.py sdist bdist_wheel
- python setup.py bdist_wininst
# msilib.Win64 import Error
# https://bugs.python.org/issue34251
# Appveyor use Python Version 3.7.0
# - python setup.py bdist_msi"
- if [%PYTHON_VERSION%] neq [3.7] python setup.py bdist_msi
# - ps: "ls dist"
artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: dist\*