forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
377 lines (291 loc) · 10.7 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
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
language: cpp
script: make unit
dist: trusty
before_install:
- eval "${MATRIX_EVAL}"
env:
global:
- CIBW_BUILD='cp37-* cp27-*'
- CIBW_TEST_REQUIRES='pytest'
- CIBW_BEFORE_BUILD='pip install "numpy>=1.16" && pip install "pandas>=0.24" && pip install "pytest>=4.3" && pip install cmake==3.13.3'
- CIBW_TEST_COMMAND='python -m pytest {project}/tests'
matrix:
include:
- os: osx
name: Xcode 11.0 Debug
osx_image: xcode11
- os: osx
name: Xcode 11.0
osx_image: xcode11
before_install:
- pip install --user boto3
script:
- (mkdir -p build/release && cd build/release && cmake -DCMAKE_BUILD_TYPE=Release ../.. && cmake --build .)
- build/release/test/unittest
after_success:
- python tools/upload-s3.py lib-osx build/release/src/libduckdb.dylib build/release/src/libduckdb_static.a
- os: linux
name: Clang 6
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang-6.0
env:
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
- os: linux
name: GCC 4.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9 binutils-2.26
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- os: linux
dist: xenial
name: GCC 9 Debug
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
- os: linux
dist: bionic
name: Valgrind
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- valgrind
script:
- mkdir -p build/debug
- (cd build/debug && cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_SANITIZER=FALSE ../.. && cmake --build .)
- valgrind ./build/debug/test/unittest -s "[tpch]"
- os: linux
dist: xenial
name: GCC 9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
before_install:
- eval "${MATRIX_EVAL}"
- pip install --user boto3
script:
- mkdir -p build/release
- (cd build/release && cmake -DCMAKE_BUILD_TYPE=Release ../.. && cmake --build .)
- build/release/test/unittest "*"
after_success:
- python tools/upload-s3.py lib-linux-amd64 build/release/src/libduckdb*.so build/release/src/libduckdb*.a
- os: linux
dist: xenial
name: GCC 9 32 Bit
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9 libc6-dev-i386 g++-9-multilib gcc-9-multilib gcc-multilib g++-multilib lib32readline6-dev lib32readline6
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
before_install:
- eval "${MATRIX_EVAL}"
- pip install --user boto3
script:
- mkdir -p build/release
- (cd build/release && cmake -DFORCE_32_BIT=1 -DCMAKE_BUILD_TYPE=Release ../.. && cmake --build .)
- build/release/test/unittest "*"
after_success:
- python tools/upload-s3.py lib-linux-i386 build/release/src/libduckdb*.so build/release/src/libduckdb*.a
- os: linux
dist: xenial
name: Code Coverage
addons:
apt:
sources:
- ubuntu-toolchain-r-test
before_install:
- pip install --user cpp-coveralls
script:
- mkdir -p build/coverage
- (cd build/coverage && cmake -E env CXXFLAGS="--coverage" cmake -DCMAKE_BUILD_TYPE=Debug ../.. && make)
- build/coverage/test/unittest
after_success:
- coveralls -b build/coverage -E '.*CMakeCXXCompilerId.cpp' --exclude tools --exclude benchmark --exclude examples --exclude third_party --exclude test --exclude src/common/enums --exclude src/parser/transform/helpers/nodetype_to_string.cpp --gcov-options '\-lp'
- os: linux
dist: xenial
name: GCC 5 (ARM64)
arch: arm64
script:
- mkdir -p build/debug
- (cd build/debug && cmake -DEXPLICIT_EXCEPTIONS=TRUE -DCMAKE_BUILD_TYPE=Debug ../.. && cmake --build .)
- build/debug/test/unittest -s "[tpch]"
- os: windows
name: VS 2017
filter_secrets: false
language: c
before_script:
- choco install python3 --version 3.7.3 -y --params "/InstallDir:C:\Python37-x64"
- choco install curl -y --force
script:
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_GENERATOR_PLATFORM=x64
- cmake --build . --target duckdb --config Release
- cmake --build . --target unittest --config Release
- test/Release/unittest.exe
after_success:
- C:/Python37-x64/python.exe tools/upload-s3.py lib-windows-amd64 src/Release/duckdb.dll
- os: windows
name: VS 2017 32 Bit
filter_secrets: false
language: c
before_script:
- choco install python3 --version 3.7.3 -y --params "/InstallDir:C:\Python37-x64"
- choco install curl -y --force
script:
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_GENERATOR_PLATFORM=Win32
- cmake --build . --target duckdb --config Release
- cmake --build . --target unittest --config Release
- test/Release/unittest.exe
after_success:
- C:/Python37-x64/python.exe tools/upload-s3.py lib-windows-i386 src/Release/duckdb.dll
- os: linux
name: R Package
dist: xenial
language: r
r: devel
before_install:
- pip install --user boto3
- cd tools/rpkg
- R -f dependencies.R
install:
- ./prepare_sourcetree.sh
- R CMD build .
- R CMD INSTALL duckdb_*.tar.gz
script:
- (cd tests && R -f testthat.R)
after_success:
- python ../upload-s3.py rstats duckdb_*.tar.gz
- os: osx
osx_image: xcode11
name: R Package
language: r
#r: devel
before_install:
- pip install --user boto3
- cd tools/rpkg
- R -f dependencies.R
install:
- ./prepare_sourcetree.sh
- R CMD build .
- R CMD INSTALL --build duckdb_*.tar.gz
- R CMD INSTALL duckdb_*.tgz
script:
- (cd tests && R -f testthat.R)
after_success:
- python ../upload-s3.py rstats duckdb_*.tgz
- os: windows
name: R Package
filter_secrets: false
language: cpp
before_script:
- choco install r.project -y --version 3.6.0
- wget "https://github.com/hannesmuehleisen/choco-rtools/raw/master/rtools.3.5.0.nupkg"
- choco install rtools -s rtools.3.5.0.nupkg -f -y
- choco install python3 --version 3.7.3 -y --params "/InstallDir:C:\Python37-x64"
- choco install curl -y --force
script:
- export "PATH=/c/Rtools/bin:$PATH"
- cd tools/rpkg
- C:/Program\ Files/R/R-3.6.0/bin/R.exe -f dependencies.R
- sh prepare_sourcetree.sh
- C:/Program\ Files/R/R-3.6.0/bin/R.exe CMD build .
- C:/Program\ Files/R/R-3.6.0/bin/R.exe CMD INSTALL --build --no-multiarch duckdb_*.tar.gz
- C:/Program\ Files/R/R-3.6.0/bin/R.exe CMD INSTALL duckdb_*.zip
- (cd tests; C:/Program\ Files/R/R-3.6.0/bin/R.exe -f testthat.R)
after_success:
- C:/Python37-x64/python.exe ../upload-s3.py rstats duckdb_*.zip
- os: linux
name: Python 3 Package
dist: xenial
language: python
cache: pip
env:
- CIBW_BUILD='cp37-*'
python: 3.7
script:
- pip install cibuildwheel==0.10.2 boto3
- cd tools/pythonpkg
- python setup.py sdist
- mkdir duckdb_tarball && tar xvf dist/duckdb-*.tar.gz --strip-components=1 -C duckdb_tarball
- cibuildwheel --output-dir wheelhouse duckdb_tarball
- cd ../..
after_success:
python tools/upload-s3.py python tools/pythonpkg/wheelhouse/*.whl tools/pythonpkg/dist/duckdb-*.tar.gz
- os: linux
name: Python 2 Package
dist: xenial
language: python
cache: pip
env:
- CIBW_BUILD='cp27-*'
python: 3.7
script:
- pip install cibuildwheel==0.10.2 boto3
- cd tools/pythonpkg
- python setup.py sdist
- mkdir duckdb_tarball && tar xvf dist/duckdb-*.tar.gz --strip-components=1 -C duckdb_tarball
- cibuildwheel --output-dir wheelhouse duckdb_tarball
- cd ../..
after_success:
python tools/upload-s3.py python tools/pythonpkg/wheelhouse/*.whl tools/pythonpkg/dist/duckdb-*.tar.gz
- os: osx
name: Python Package
language: generic
osx_image: xcode11
script:
- pip install cibuildwheel==0.10.2 boto3
- cd tools/pythonpkg
- python setup.py sdist
- mkdir duckdb_tarball && tar xvf dist/duckdb-*.tar.gz --strip-components=1 -C duckdb_tarball
- cibuildwheel --output-dir wheelhouse duckdb_tarball
- cd ../..
after_success:
python tools/upload-s3.py python tools/pythonpkg/wheelhouse/*.whl
- os: windows
name: Python Package
language: cpp
filter_secrets: false
# no python 27 because no C++11 support in its windows toolchain
env:
- CIBW_BUILD='cp37-*'
before_install:
- choco install python3 --version 3.7.3 --sidebyside -y --forcex86 --force --params "/InstallDir:C:\Python37"
- choco install python3 --version 3.7.3 --sidebyside -y --force --params "/InstallDir:C:\Python37-x64"
# - choco install python3 --version 3.6.8 --sidebyside -y --forcex86 --force --params "/InstallDir:C:\Python36"
# - choco install python3 --version 3.6.8 --sidebyside -y --force --params "/InstallDir:C:\Python36-x64"
- choco install python2 --version 2.7.16 --sidebyside -y --forcex86 --force --params "/InstallDir:C:\Python27"
- choco install python2 --version 2.7.16 --sidebyside -y --force --params "/InstallDir:C:\Python27-x64"
- choco install curl -y --force
- C:/Python37-x64/python.exe -m pip install --upgrade pip
- C:/Python37-x64/python.exe -m pip install "cibuildwheel==0.10.2"
- C:/Python37-x64/python.exe -m pip install "numpy>=1.16" "pandas>=0.24" "pytest>=4.3"
script:
- cd tools/pythonpkg
- C:/Python37-x64/python.exe setup.py sdist
- mkdir duckdb_tarball && tar xvf dist/duckdb-*.tar.gz --strip-components=1 -C duckdb_tarball
- C:/Python37-x64/python.exe -m cibuildwheel --platform windows --output-dir wheelhouse duckdb_tarball
- cd ../..
after_success:
C:/Python37-x64/python.exe tools/upload-s3.py python tools/pythonpkg/wheelhouse/*.whl