forked from mongodb/mongo-cxx-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mci.yml
681 lines (615 loc) · 26.8 KB
/
.mci.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
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
#######################################
# CXX Driver Config for MCI #
#######################################
#######################################
# Variables #
#######################################
variables:
mongodb_version:
version_latest: &version_latest latest
version_40: &version_40 4.0
## cmake path variables
extra_path:
linux_extra_path: &linux_extra_path /opt/cmake/bin
macos_extra_path: &macos_extra_path /Applications/Cmake.app/Contents/bin
windows_extra_path: &windows_extra_path "/cygdrive/c/cmake/bin:/cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin"
## tar options variables
tar_options:
linux_tar_options: &linux_tar_options --wildcards --no-anchored
## cdriver configure flags
cdriver_configure_flags:
linux_cdriver_configure_flags: &linux_cdriver_configure_flags --enable-ssl --enable-sasl --with-gnu-ld CFLAGS=-fno-omit-frame-pointer
macos_cdriver_configure_flags: &macos_cdriver_configure_flags --enable-ssl --enable-sasl
## cmake flag variables
cmake_flags:
linux_cmake_flags: &linux_cmake_flags -DCMAKE_C_FLAGS="-Wall -Wextra -Wno-attributes -Werror -Wno-missing-field-initializers" -DCMAKE_CXX_FLAGS="-Wall -Wextra -Wconversion -Wnarrowing -Wno-expansion-to-defined -pedantic -Werror -Wno-missing-field-initializers"
macos_cmake_flags: &macos_cmake_flags -DCMAKE_C_FLAGS="-Wall -Wextra -Wno-attributes -Werror -Wno-missing-field-initializers" -DCMAKE_CXX_FLAGS="-stdlib=libc++ -Wall -Wextra -Wconversion -Wnarrowing -pedantic -Werror"
asan_cmake_flags: &asan_cmake_flags -DCMAKE_C_FLAGS="-Wall -Wextra -Wno-attributes -Werror -Wno-missing-field-initializers" -DCMAKE_CXX_COMPILER="/usr/bin/clang++" -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -fsanitize=address -O1 -g -fno-omit-frame-pointer -Wall -Wextra -Wconversion -Wnarrowing -pedantic -Werror"
ubsan_cmake_flags: &ubsan_cmake_flags -DCMAKE_C_FLAGS="-Wall -Wextra -Wno-attributes -Werror -Wno-missing-field-initializers" -DCMAKE_CXX_COMPILER="/usr/bin/clang++" -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -fsanitize=undefined -fsanitize-blacklist=$(pwd)/etc/ubsan.blacklist -fno-sanitize-recover=undefined -O1 -g -fno-omit-frame-pointer -Wall -Wextra -Wconversion -Wnarrowing -pedantic -Werror"
windows_cmake_flags: &windows_cmake_flags -G "Visual Studio 14 2015 Win64" -DBOOST_ROOT=c:/local/boost_1_60_0
example_projects_cc:
asan_cc_path: &asan_cc_path /usr/bin/clang
ubsan_cc_path: &ubsan_cc_path /usr/bin/clang
example_projects_cxx:
asan_cxx_path: &asan_cxx_path /usr/bin/clang++
ubsan_cxx_path: &ubsan_cxx_path /usr/bin/clang++
example_projects_cxxflags:
asan_cxxflags: &asan_cxxflags -D_GLIBCXX_USE_CXX11_ABI=0 -fsanitize=address -fno-omit-frame-pointer
ubsan_cxxflags: &ubsan_cxxflags -D_GLIBCXX_USE_CXX11_ABI=0 -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer
example_projects_ldflags:
asan_ldflags: &asan_ldflags -fsanitize=address
ubsan_ldflags: &ubsan_ldflags -fsanitize=undefined -fno-sanitize-recover=undefined
example_projects_cxx_standard:
std_experimental_cxx_standard: &std_experimental_cxx_standard 14
poly_flags:
poly_boost_flags: &poly_boost_flags -DBSONCXX_POLY_USE_BOOST=ON
poly_std_experimental_flags: &poly_std_experimental_flags -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=ON -DCMAKE_CXX_STANDARD=14
poly_mnmlstc: &poly_mnmlstc -DBSONCXX_POLY_USE_MNMLSTC=ON
## test parameters
test_params:
asan_test_params: &asan_test_params PATH="/usr/lib/llvm-3.8/bin" ASAN_OPTIONS="detect_leaks=1"
ubsan_test_params: &ubsan_test_params PATH="/usr/lib/llvm-3.8/bin" UBSAN_OPTIONS="print_stacktrace=1"
valgrind_test_params: &valgrind_test_params valgrind --leak-check=full --track-origins=yes --num-callers=50 --error-exitcode=1 --error-limit=no --read-var-info=yes --suppressions=../etc/memcheck.suppressions
#######################################
# Functions #
#######################################
functions:
"setup":
- command: shell.exec
params:
shell: bash
script: |
set -o errexit
set -o xtrace
set -o pipefail
rm -rf "mongo-cxx-driver"
rm -fr "mongo-c-driver"
rm -fr mongod
- command: git.get_project
params:
directory: "mongo-cxx-driver"
- command: shell.exec
params:
shell: bash
working_dir: "."
script: |
set -o errexit
set -o xtrace
set -o pipefail
cc --version || true
c++ --version || true
gcc --version || true
g++ --version || true
clang --version || true
cmake --version || true
"start_mongod":
command: shell.exec
params:
shell: bash
working_dir: "."
script: |
set -o errexit
set -o xtrace
set -o pipefail
git clone [email protected]:mongodb-labs/drivers-evergreen-tools.git
cd drivers-evergreen-tools
# Convert shell script line endings. TODO: Remove this when
# <https://github.com/mongodb-labs/drivers-evergreen-tools/pull/6> is merged.
for i in .evergreen/*.sh; do dos2unix "$i" || true; done
export DRIVERS_TOOLS=$(pwd)
if [ "Windows_NT" == "$OS" ]; then
export DRIVERS_TOOLS=$(cygpath -m $DRIVERS_TOOLS)
fi
export MONGODB_BINARIES=$DRIVERS_TOOLS/mongodb/bin
export MONGO_ORCHESTRATION_HOME=$DRIVERS_TOOLS/.evergreen/orchestration
export MONGODB_VERSION=${mongodb_version}
export AUTH=${AUTH}
export TOPOLOGY=${topology|server}
echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config
./.evergreen/run-orchestration.sh
"stop_mongod":
command: shell.exec
params:
shell: bash
working_dir: "."
script: |
set -o errexit
set -o xtrace
set -o pipefail
cd drivers-evergreen-tools/.evergreen/orchestration
if [ -f venv/bin/activate ]; then
. venv/bin/activate
elif [ -f venv/Scripts/activate ]; then
. venv/Scripts/activate
fi
mongo-orchestration stop
"install_c_driver":
command: shell.exec
params:
shell: bash
working_dir: "mongo-cxx-driver"
script: |
set -o errexit
set -o xtrace
set -o pipefail
export PREFIX=$(pwd)/../mongoc/
if [ "Windows_NT" == "$OS" ]; then
PREFIX=$(cygpath -m "$PREFIX")
fi
./.evergreen/install.sh ${MONGOC_VERSION|master}
"lint":
- command: shell.exec
params:
shell: bash
working_dir: "mongo-cxx-driver"
script: |
set -o errexit
set -o xtrace
set -o pipefail
python etc/clang_format.py lint
"compile":
- command: shell.exec
params:
shell: bash
working_dir: "mongo-cxx-driver"
script: |
set -o errexit
set -o xtrace
set -o pipefail
export BUILD_TYPE=${build_type}
export PATH="${extra_path}:$PATH"
ADDL_OPTS=
if [ "${USE_STATIC_LIBS}" ]; then
ADDL_OPTS="-DBUILD_SHARED_LIBS=OFF"
fi
MONGOC_PREFIX="$(pwd)/../mongoc"
echo "MONGOC_PREFIX=$MONGOC_PREFIX"
ls -l $MONGOC_PREFIX
if [ "Windows_NT" == "$OS" ]; then
MONGOC_PREFIX=$(cygpath -m "$MONGOC_PREFIX")
fi
python -m virtualenv venv
cd venv
if [ -f bin/activate ]; then
. bin/activate
./bin/pip install GitPython
elif [ -f Scripts/activate ]; then
. Scripts/activate
./Scripts/pip install GitPython
fi
cd ..
.evergreen/compile.sh -DCMAKE_PREFIX_PATH="$MONGOC_PREFIX" ${cmake_flags} ${poly_flags} $ADDL_OPTS -DCMAKE_INSTALL_PREFIX=install
"test":
- command: shell.exec
params:
shell: bash
working_dir: "mongo-cxx-driver"
script: |
set -o errexit
set -o xtrace
set -o pipefail
export PATH="${extra_path}:$PATH"
cd build
export PREFIX=$(pwd)/../../mongoc
# Use PATH / LD_LIBRARY_PATH / DYLD_LIBRARY_PATH to inform the tests where to find
# mongoc library dependencies on Windows / Linux / Mac OS, respectively.
# Additionally, on Windows, we also need to inform the tests where to find
# mongocxx library dependencies.
export LD_LIBRARY_PATH=.:$PREFIX/lib/
export DYLD_LIBRARY_PATH=.:$PREFIX/lib/
export PATH=$(pwd)/src/bsoncxx/${build_type}:$(pwd)/src/mongocxx/${build_type}:$PREFIX/bin:$(pwd)/install/bin:$PATH
# CRUD_TESTS_PATH and GRIDFS_TESTS_PATH are required to be set by the
# `test_crud_specs` and `test_gridfs_specs` test binaries, respectively.
export CRUD_TESTS_PATH="$(pwd)/../data/crud"
export GRIDFS_TESTS_PATH="$(pwd)/../data/gridfs"
export COMMAND_MONITORING_TESTS_PATH="$(pwd)/../data/command-monitoring"
export TRANSACTIONS_TESTS_PATH="$(pwd)/../data/transactions"
if [ "Windows_NT" == "$OS" ]; then
CRUD_TESTS_PATH=$(cygpath -m $CRUD_TESTS_PATH)
CTEST_OUTPUT_ON_FAILURE=1 MSBuild.exe /p:Configuration=${build_type} RUN_TESTS.vcxproj
CTEST_OUTPUT_ON_FAILURE=1 MSBuild.exe /p:Configuration=${build_type} examples/run-examples.vcxproj
else
# ENABLE_SLOW_TESTS is required to run the slow tests that are disabled by default. The slow tests should not be run if explicitly disabled.
if [ -z "${disable_slow_tests}" ]; then
export MONGOCXX_ENABLE_SLOW_TESTS=1
fi
ulimit -c unlimited || true
# Run tests and examples 1-by-1 with "test_params" so we can run them with valgrind.
${test_params} ./src/bsoncxx/test/test_bson
${test_params} ./src/mongocxx/test/test_driver
${test_params} ./src/mongocxx/test/test_crud_specs
${test_params} ./src/mongocxx/test/test_gridfs_specs
${test_params} ./src/mongocxx/test/test_command_monitoring_specs
${test_params} ./src/mongocxx/test/test_instance
${test_params} ./src/mongocxx/test/test_transactions_specs
# Some platforms like OS X don't support the /mode syntax to the -perm option
# of find(1), and some platforms like Ubuntu 16.04 don't support the +mode
# syntax, so we use Perl to help us find executable files.
EXAMPLES=$(find examples -type f | sort | perl -nlwe 'print if -x')
for test in $EXAMPLES; do
case "$test" in
*change_stream*)
echo "TODO CXX-1201, enable for servers that support change streams"
;;
*client_session*)
echo "TODO CXX-1201, enable for servers that support change streams"
;;
*)
${test_params} $test
;;
esac
done
fi
cd ..
export CMAKE_PREFIX_PATH=$PREFIX:$(pwd)/build/install
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$(pwd)/build/install/lib/pkgconfig
export USE_STATIC_LIBS="${USE_STATIC_LIBS}"
export BUILD_TYPE="${build_type}"
export CXXFLAGS="${example_projects_cxxflags}"
export LDFLAGS="${example_projects_ldflags}"
export CC="${example_projects_cc}"
export CXX="${example_projects_cxx}"
export CXX_STANDARD="${example_projects_cxx_standard}"
if [ "Windows_NT" == "$OS" ]; then
export MSVC=1
elif [ "$(uname -s | tr '[:upper:]' '[:lower:]')" == "darwin" ]; then
export DYLD_LIBRARY_PATH="$(pwd)/build/install/lib:$DYLD_LIBRARY_PATH"
else
export LD_LIBRARY_PATH="$(pwd)/build/install/lib:$LD_LIBRARY_PATH"
fi
# The example projects never run under valgrind, since we haven't added execution
# logic to handle ${test_params}.
.evergreen/build_example_projects.sh
"test auth":
- command: shell.exec
params:
shell: bash
working_dir: "mongo-cxx-driver"
script: |
set -o errexit
set -o xtrace
set -o pipefail
export PATH="${extra_path}:$PATH"
cd build
export PREFIX=$(pwd)/../../mongoc
# Use PATH / LD_LIBRARY_PATH / DYLD_LIBRARY_PATH to inform the tests where to find
# mongoc library dependencies on Windows / Linux / Mac OS, respectively.
# Additionally, on Windows, we also need to inform the tests where to find
# mongocxx library dependencies.
export LD_LIBRARY_PATH=.:$PREFIX/lib/
export DYLD_LIBRARY_PATH=.:$PREFIX/lib/
export PATH=$(pwd)/src/bsoncxx/${build_type}:$(pwd)/src/mongocxx/${build_type}:$PREFIX/bin:$(pwd)/install/bin:$PATH
URI="mongodb://bob:pwd123@localhost"
if [ "Windows_NT" == "$OS" ]; then
./examples/mongocxx/${build_type}/connect.exe "$URI"
else
./examples/mongocxx/connect "$URI"
fi
"backtrace":
- command: shell.exec
params:
working_dir: "mongo-cxx-driver"
script: |
./etc/debug-core-evergreen.sh
"upload working dir":
- command: archive.targz_pack
params:
target: "working-dir.tar.gz"
source_dir: "mongo-cxx-driver"
include:
- "./**"
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: working-dir.tar.gz
remote_file: mongo-cxx-driver/${build_variant}/${revision}/${version_id}/${build_id}/artifacts/${task_id}-${execution}-working-dir.tar.gz
bucket: mciuploads
permissions: public-read
content_type: ${content_type|application/x-gzip}
display_name: "working-dir.tar.gz"
#######################################
# Pre Task #
#######################################
post:
- func: "stop_mongod"
- func: "backtrace"
- func: "upload working dir"
#######################################
# Tasks #
#######################################
tasks:
- name: lint
commands:
- func: "setup"
- func: "lint"
- name: compile_and_test_with_shared_libs
commands:
- func: "setup"
- func: "start_mongod"
- func: "install_c_driver"
vars:
MONGOC_VERSION: master
- func: "compile"
- func: "test"
- name: compile_and_test_auth_with_shared_libs
commands:
- func: "setup"
- func: "start_mongod"
vars:
AUTH: auth
- func: "install_c_driver"
vars:
MONGOC_VERSION: master
- func: "compile"
- func: "test auth"
- name: compile_and_test_with_static_libs
commands:
- func: "setup"
- func: "start_mongod"
- func: "install_c_driver"
vars:
MONGOC_VERSION: master
- func: "compile"
vars:
USE_STATIC_LIBS: 1
- func: "test"
vars:
USE_STATIC_LIBS: 1
- name: compile_and_test_with_shared_libs_replica_set
commands:
- func: "setup"
- func: "start_mongod"
vars:
TOPOLOGY: "replica_set"
- func: "install_c_driver"
vars:
MONGOC_VERSION: master
- func: "compile"
- func: "test"
#######################################
# MongoDB Version Matrix #
#######################################
axes:
- id: os
display_name: "OS"
values:
- id: "ubuntu-1404"
display_name: "Ubuntu 14.04 Debug"
variables:
cdriver_configure_flags: *linux_cdriver_configure_flags
extra_path: *linux_extra_path
cmake_flags: *linux_cmake_flags
build_type: "Debug"
tar_options: *linux_tar_options
run_on:
- ubuntu1404-test
- id: "windows-2k8"
display_name: "Windows 2008R2 Debug"
variables:
extra_path: *windows_extra_path
cmake_flags: *windows_cmake_flags
build_type: "Debug"
tar_options: *linux_tar_options # Same for Windows and Linux
run_on:
- windows-64-vs2015-compile
- id: mongodb_version
display_name: "MongoDB Version"
values:
- id: "latest"
display_name: "Latest"
variables:
mongodb_version: *version_latest
- id: "4.0"
display_name: "4.0"
variables:
mongodb_version: *version_40
#######################################
# Buildvariants #
#######################################
buildvariants:
#######################################
# Standard MongoDB Integration Tests #
#######################################
- matrix_name: "integration"
matrix_spec: {os: "*", mongodb_version: "*"}
display_name: "${os} ${mongodb_version}"
tasks:
- name: compile_and_test_with_shared_libs
- matrix_name: "auth"
matrix_spec: {os: "*", mongodb_version: "latest"}
display_name: "${os} ${mongodb_version} Auth"
tasks:
- name: compile_and_test_auth_with_shared_libs
#######################################
# Linux Buildvariants #
#######################################
- name: ubuntu1404-release
display_name: "Ubuntu 14.04 Release"
expansions:
build_type: "Release"
tar_options: *linux_tar_options
cdriver_configure_flags: *linux_cdriver_configure_flags
extra_path: *linux_extra_path
cmake_flags: *linux_cmake_flags
mongodb_version: *version_latest
run_on:
- ubuntu1404-test
tasks:
- name: lint
- name: compile_and_test_with_shared_libs
- name: compile_and_test_with_static_libs
- name: compile_and_test_with_shared_libs_replica_set
- name: ubuntu1404-debug
display_name: "Ubuntu 14.04 Debug Static"
expansions:
build_type: "Debug"
tar_options: *linux_tar_options
cdriver_configure_flags: *linux_cdriver_configure_flags
extra_path: *linux_extra_path
cmake_flags: *linux_cmake_flags
mongodb_version: *version_latest
run_on:
- ubuntu1404-test
tasks:
# The debug shared lib is tested in the "integration tests" matrix
- name: compile_and_test_with_static_libs
- name: ubuntu1604-debug-std-experimental
display_name: "Ubuntu 16.04 Debug (std::experimental)"
expansions:
build_type: "Debug"
tar_options: *linux_tar_options
cdriver_configure_flags: *linux_cdriver_configure_flags
extra_path: *linux_extra_path
cmake_flags: *linux_cmake_flags
poly_flags: *poly_std_experimental_flags
mongodb_version: *version_latest
example_projects_cxx_standard: *std_experimental_cxx_standard
run_on:
- ubuntu1604-build
tasks:
- name: compile_and_test_with_shared_libs
- name: compile_and_test_with_static_libs
- name: ubuntu1604-debug-valgrind
display_name: "Valgrind Ubuntu 16.04 Debug"
expansions:
build_type: "Debug"
tar_options: *linux_tar_options
cdriver_configure_flags: *linux_cdriver_configure_flags
extra_path: *linux_extra_path
cmake_flags: *linux_cmake_flags
test_params: *valgrind_test_params
mongodb_version: *version_latest
disable_slow_tests: 1
run_on:
- ubuntu1604-build
tasks:
- name: compile_and_test_with_shared_libs
- name: compile_and_test_with_static_libs
- name: ubuntu1604-debug-asan
display_name: "ASAN Ubuntu 16.04 Debug"
expansions:
build_type: "Debug"
tar_options: *linux_tar_options
cdriver_configure_flags: *linux_cdriver_configure_flags
extra_path: *linux_extra_path
cmake_flags: *asan_cmake_flags
test_params: *asan_test_params
mongodb_version: *version_latest
example_projects_cc: *asan_cc_path
example_projects_cxx: *asan_cxx_path
example_projects_cxxflags: *asan_cxxflags
example_projects_ldflags: *asan_ldflags
run_on:
- ubuntu1604-build
tasks:
- name: compile_and_test_with_shared_libs
- name: compile_and_test_with_static_libs
- name: ubuntu1604-debug-ubsan
display_name: "UBSAN Ubuntu 16.04 Debug"
expansions:
build_type: "Debug"
tar_options: *linux_tar_options
cdriver_configure_flags: *linux_cdriver_configure_flags
extra_path: *linux_extra_path
cmake_flags: *ubsan_cmake_flags
test_params: *ubsan_test_params
mongodb_version: *version_latest
example_projects_cc: *ubsan_cc_path
example_projects_cxx: *ubsan_cxx_path
example_projects_cxxflags: *ubsan_cxxflags
example_projects_ldflags: *ubsan_ldflags
run_on:
- ubuntu1604-build
tasks:
# We currently don't run UBSAN on the shared library due to issues with UBSAN reporting
# numerous false positive instances of undefined behavior in the mock tests, when the
# driver invokes mock callback functions that have libmongoc types in the callback
# signature.
- name: compile_and_test_with_static_libs
# Reenable when the server is updated here, CXX-1576.
#- name: ubuntu1604-zseries
# display_name: "s390x Ubuntu 16.04"
# batchtime: 1440 # 1 day
# expansions:
# build_type: "Release"
# tar_options: *linux_tar_options
# cdriver_configure_flags: *linux_cdriver_configure_flags
# cmake_flags: *linux_cmake_flags
# mongodb_version: *version_latest
# run_on:
# - ubuntu1604-zseries-small
# tasks:
# - name: compile_and_test_with_shared_libs
# - name: compile_and_test_with_static_libs
- name: power8-ubuntu1604
display_name: "ppc64le Ubuntu 16.04"
batchtime: 1440 # 1 day
expansions:
build_type: "Release"
tar_options: *linux_tar_options
cdriver_configure_flags: *linux_cdriver_configure_flags
cmake_flags: *linux_cmake_flags
mongodb_version: *version_latest
run_on:
- ubuntu1604-power8-build
tasks:
- name: compile_and_test_with_shared_libs
- name: compile_and_test_with_static_libs
- name: arm-ubuntu1604
display_name: "arm64 Ubuntu 16.04"
batchtime: 1440 # 1 day
expansions:
build_type: "Release"
tar_options: *linux_tar_options
cdriver_configure_flags: *linux_cdriver_configure_flags
cmake_flags: *linux_cmake_flags
mongodb_version: *version_latest
run_on:
- ubuntu1604-arm64-small
tasks:
- name: compile_and_test_with_shared_libs
- name: compile_and_test_with_static_libs
#######################################
# Mac and Windows #
#######################################
- name: macos-1012
display_name: "MacOS 10.12 Release (Boost)"
expansions:
build_type: "Release"
cdriver_configure_flags: *macos_cdriver_configure_flags
extra_path: *macos_extra_path
cmake_flags: *macos_cmake_flags
poly_flags: *poly_boost_flags
mongodb_version: *version_latest
run_on:
- macos-1012
tasks:
- name: compile_and_test_with_shared_libs
- name: compile_and_test_with_static_libs
- name: windows-2k8-release
display_name: "Windows 2008R2 Release"
expansions:
build_type: "Release"
tar_options: *linux_tar_options
extra_path: *windows_extra_path
cmake_flags: *windows_cmake_flags
mongodb_version: *version_latest
run_on:
- windows-64-vs2015-compile
tasks:
- name: compile_and_test_with_shared_libs
- name: compile_and_test_with_static_libs
- name: windows-2k8-debug
display_name: "Windows 2008R2 Debug Static"
expansions:
build_type: "Debug"
tar_options: *linux_tar_options
extra_path: *windows_extra_path
cmake_flags: *windows_cmake_flags
mongodb_version: *version_latest
run_on:
- windows-64-vs2015-compile
tasks:
# The debug shared lib is tested in the "integration tests" matrix
- name: compile_and_test_with_static_libs