This repository has been archived by the owner on May 27, 2024. It is now read-only.
forked from kedazo/mongo-cxx-driver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.mci.yml
858 lines (765 loc) · 27 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
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
#######################################
# CXX Driver Config for MCI #
#######################################
## Some variables for convenience:
cxx_driver_variables:
## The basic set of tests to run on most buildvariants.
latest_test_list: &latest_tests
- name: "compile"
- name: "unit-test"
- name: "integration-test-latest"
# The auth integration tests are temporary disabled. TODO CXX-1213: Uncomment the below line
# once the mongo-orchestration issue in CXX-1213 has been resolved.
# - name: "integration-test-latest-with-auth"
- name: "client-test-latest"
## The latest test list, temporarily trimmed down on Windows. TODO CXX-1210: Replace this with
## 'latest_test_list' once the taskkill.exe issue in CXX-1210 has been resolved.
windows_latest_test_list: &windows_latest_tests
- name: "compile"
- name: "unit-test"
## The latest test list, temporarily trimmed down on OS X. TODO CXX-1211: Replace this with
## 'latest_test_list' once the mongo-orchestration issue in CXX-1211 has been resolved.
osx_latest_test_list: &osx_latest_tests
- name: "compile"
- name: "unit-test"
## Same as above, but with the MMAPv1 storage engine.
latest_test_with_mmapv1_list: &latest_tests_with_mmapv1
- name: "compile"
- name: "unit-test"
- name: "integration-test-latest-with-MMAPv1"
# The auth integration tests are temporary disabled. TODO CXX-1213: Uncomment the below line
# once the mongo-orchestration issue in CXX-1213 has been resolved.
# - name: "integration-test-latest-with-auth-and-MMAPv1"
- name: "client-test-latest-with-MMAPv1"
## Note that the in 3.0, the default storage engine is MMAPv1 and
## WiredTiger is opt-in, but as of MongoDB 3.1.4, the
## default is WiredTiger and MMAPv1 is opt-in.
storage_engine_test_list: &storage_engine_tests
- name: "compile"
- name: "unit-test"
- name: "integration-test-3.0"
- name: "integration-test-3.0-with-WiredTiger"
- name: "integration-test-3.2"
- name: "integration-test-3.2-with-MMAPv1"
- name: "integration-test-3.4"
- name: "integration-test-3.4-with-MMAPv1"
- name: "client-test-3.0"
- name: "client-test-3.0-with-WiredTiger"
- name: "client-test-3.2"
- name: "client-test-3.2-with-MMAPv1"
- name: "client-test-3.4"
- name: "client-test-3.4-with-MMAPv1"
version_test_list: &version_tests
- name: "compile"
- name: "lint"
- name: "unit-test"
- name: "integration-test-2.2"
- name: "integration-test-2.4"
- name: "integration-test-2.6"
- name: "integration-test-3.0"
- name: "integration-test-3.2"
- name: "integration-test-3.4"
- name: "integration-test-latest"
- name: "client-test-2.2"
- name: "client-test-2.4"
- name: "client-test-2.6"
- name: "client-test-3.0"
- name: "client-test-3.2"
- name: "client-test-3.4"
- name: "client-test-latest"
## Common download urls (merge in as hashes)
mongo_download_url_prefixes:
ubuntu1404: &mongo_url_ubuntu1404
mongo_url_prefix: "http://downloads.mongodb.com/linux/mongodb-linux-x86_64-"
mongo_url_platform: "ubuntu1404-"
windows64-bitcomm: &mongo_url_windows64
mongo_url_prefix: "http://downloads.mongodb.com/win32/mongodb-win32-x86_64-"
mongo_url_platform: "windows-64-"
windows32: &mongo_url_windows32
mongo_url_prefix: "http://downloads.mongodb.org/win32/mongodb-win32-i386-"
mongo_url_enterprise_keyword: ""
rhel55: &mongo_url_rhel55
mongo_url_prefix: "http://downloads.mongodb.com/linux/mongodb-linux-x86_64-"
mongo_url_platform: "rhel57-"
rhel55_32: &mongo_url_rhel55_32
mongo_url_prefix: "http://downloads.mongodb.org/linux/mongodb-linux-i686-"
mongo_url_enterprise_keyword: ""
mongo_url_subscription_keyword: ""
osx-1010: &mongo_url_osx_1010
mongo_url_prefix: "http://downloads.mongodb.org/osx/mongodb-osx-x86_64-"
mongo_url_enterprise_keyword: ""
## Common sets of scons flags
scons_flags:
standard: &scons_flags_64
scons_flags: "--64 --ssl --use-sasl-client --sharedclient"
standard_32: &scons_flags_32
scons_flags: "--32 --ssl --use-sasl-client --sharedclient"
ubuntu_c++11: &scons_flags_cpp11
scons_flags: "--64 --c++11 --ssl --use-sasl-client --sharedclient"
osx_1010: &scons_flags_osx_1010
scons_flags: "--64 --ssl --use-sasl-client --sharedclient --osx-version-min=10.7 --libc++"
## test all plausible combinations of static/dynamic mongo client and windows runtime:
static_windows: &scons_flags_64_windows_static
scons_flags: "--64 --ssl --use-sasl-client"
dynamic_RT_windows: &scons_flags_64_windows_dynamic_rt
scons_flags: "--64 --ssl --use-sasl-client --dynamic-windows"
dynamic_windows: &scons_flags_64_windows_dynamic
scons_flags: "--64 --ssl --use-sasl-client --dynamic-windows --sharedclient"
32bit_windows: &scons_flags_32_windows_dynamic
scons_flags: "--32 --dynamic-windows --sharedclient"
## Special compile flags
compile_flags:
debug: &compile_flags_debug
compile_flags: "--dbg=on"
parallel_compile_flags:
proc_parallel: ¶llel_compile_flags_proc
parallel_compile_flags: "-j$(grep -c ^processor /proc/cpuinfo)"
sysctl_parallel: ¶llel_compile_flags_sysctl
parallel_compile_flags: "-j$(sysctl -n hw.logicalcpu)"
## Scripts that are shared between buildvariants
scripts:
mongo_orchestration:
windows: &mongo_orchestration_windows
start_mongo_orchestration: |
echo "Installing Mongo Orchestration..."
trap 'set +o errexit; mongo-orchestration stop;' EXIT
taskkill.exe /fi python /f
echo "Starting Mongo Orchestration..."
echo "{ \"releases\": { \"default\": \"c:\\\\mongodb\\\\bin\" }, \"last_updated\": \"2014-08-29 20:57:00.000000\" }" > orchestration.config
mongo-orchestration -f orchestration.config -e default -s wsgiref start --socket-timeout-ms=60000
sleep 15
linux: &mongo_orchestration_linux
## we are going to manually install mongo-orchestration for now on Linux until it is stable enough that we don't always to install from HEAD
start_mongo_orchestration: |
echo "Installing Mongo Orchestration..."
trap 'set +o errexit; mongo-orchestration stop;' EXIT
echo "Starting Mongo Orchestration..."
echo "{ \"releases\": { \"default\": \"`pwd`/mongodb/bin\" }, \"last_updated\": \"2014-08-29 20:57:00.000000\" }" > orchestration.config
TMPDIR=/data/db mongo-orchestration -f orchestration.config -e default start --socket-timeout-ms=60000
sleep 15
osx: &mongo_orchestration_osx
start_mongo_orchestration: |
echo "Starting Mongo Orchestration..."
trap 'set +o errexit; /usr/local/bin/mongo-orchestration stop;' EXIT
echo "{ \"releases\": { \"default\": \"`pwd`/mongodb/bin\" }, \"last_updated\": \"2014-08-29 20:57:00.000000\" }" > orchestration.config
TMPDIR=/data/db /usr/local/bin/mongo-orchestration -f orchestration.config -e default start # --socket-timeout-ms=60000 <- uncomment when OSX builders get new MO
sleep 15
## Other os-specific attributes, grouped by OS
## Misc. for Windows builds
windows_compilers:
## msvc2010
msvc2010: &with_msvc2010
toolchain_flags: --msvc-version=10.0
libpath: --libpath="c:\local\boost_1_57_0\lib64-msvc-10.0"
cpppath: --cpppath="c:\local\boost_1_57_0"
dllpath: --runtime-library-search-path="c:\local\boost_1_57_0\lib64-msvc-10.0,c:\openssl\bin,c:\sasl\bin,c:\curl\dlls"
extrapath: --extrapath="c:\openssl,c:\sasl,c:\curl"
## msvc2013, 32-bit boost headers
msvc2013-32: &with_msvc2010_32bit
toolchain_flags: --msvc-version=10.0
libpath: --libpath="c:\local\boost_1_57_0\lib32-msvc-10.0"
cpppath: --cpppath="c:\local\boost_1_57_0"
dllpath: --runtime-library-search-path="c:\local\boost_1_57_0\lib32-msvc-10.0,c:\curl\dlls"
extrapath: --extrapath="c:\curl"
msvc2013: &with_msvc2013
toolchain_flags: --msvc-version=12.0
libpath: --libpath="c:\local\boost_1_56_0\lib64-msvc-12.0"
cpppath: --cpppath="c:\local\boost_1_56_0"
dllpath: --runtime-library-search-path="c:\local\boost_1_56_0\lib64-msvc-12.0,c:\openssl\bin,c:\sasl\bin,c:\curl\dlls"
extrapath: --extrapath="c:\openssl,c:\sasl,c:\curl"
msvc2015: &with_msvc2015
toolchain_flags: --msvc-version=14.0
libpath: --libpath="c:\local\boost_1_60_0\lib64-msvc-14.0"
cpppath: --cpppath="c:\local\boost_1_60_0"
dllpath: --runtime-library-search-path="c:\local\boost_1_60_0\lib64-msvc-14.0,c:\openssl\bin,c:\sasl\bin,c:\curl\dlls"
extrapath: --extrapath="c:\openssl,c:\sasl,c:\curl"
## all windows buildvariants have these attributes in common
windows_common: &windows_common
mongo_url_extension: "zip"
scons: scons.bat
extension: ".exe"
windows: true
<<: *mongo_orchestration_windows
## Paths for OS X builds
osx_fixups:
scons:
boost_headers: &extrapath_osx_1010
extrapath: --extrapath="/usr/local"
## Paths and flags for RHEL 5.5 builds
rhel55_fixups:
scons:
warning_flags: &warning_flags_rhel55
# For some reason GCC on RHEL 5.5 gives lots of warnings from its own headers when using
# visibility attributes.
warning_flags: --disable-warnings-as-errors
cpp:
cpp_boost: &cpppath_rhel55
cpppath: --cpppath="/usr/include/boost141"
lib:
lib32_boost: &libpath_rhel55_32
libpath: --libpath="/usr/lib/boost141"
lib64_boost: &libpath_rhel55_64
libpath: --libpath="/usr/lib64/boost141"
#######################################
# Functions #
#######################################
functions:
"fetch source" :
command: git.get_project
params:
directory: mongo-cxx-driver
"fetch mongodb" :
command: shell.exec
params:
working_dir: "mongo-cxx-driver"
script: |
set -o verbose
set -o errexit
curl -s ${mongo_url} --output mongo_enterprise.${ext|tgz}
${decompress} mongo_enterprise.${ext|tgz}
mv mongodb* mongodb
chmod +x ./mongodb/bin/mongod${extension}
if [ ${windows|false} = true ]; then
cp -r mongodb /cygdrive/c/mongodb
#This won't run on a 32bit OS.
./mongodb/bin/vcredist_x64${extension} /Q
fi
"fetch artifacts" :
command: s3.get
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
remote_file: mongo-cxx-driver/${build_variant}/${revision}/artifacts/mongo-${build_id}.tar.gz
bucket: mciuploads
extract_to: mongo-cxx-driver
"use WiredTiger storage" :
command: expansions.update
params:
updates:
- key: "orchestration_preset"
value: "--mongo-orchestration-preset=wiredtiger.json"
"use MMAPv1 storage" :
command: expansions.update
params:
updates:
- key: "orchestration_preset"
# Requires mongo-orchestration 0.4
value: "--mongo-orchestration-preset=mmapv1.json"
"use auth" :
command: expansions.update
params:
updates:
- key: "orchestration_preset"
# Requires mongo-orchestration 0.4.2
value: "--mongo-orchestration-preset=auth.json"
"set version 2.2" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_subscription_keyword|subscription-}${mongo_url_platform|}2.2.7.${mongo_url_extension|tgz}
"set version 2.4" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_subscription_keyword|subscription-}${mongo_url_platform|}2.4.14.${mongo_url_extension|tgz}
"set version 2.6" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_enterprise_keyword|enterprise-}${mongo_url_platform|}2.6.12.${mongo_url_extension|tgz}
"set version 3.0" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_enterprise_keyword|enterprise-}${mongo_url_platform|}3.0.15.${mongo_url_extension|tgz}
"set version 3.2" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_enterprise_keyword|enterprise-}${mongo_url_platform|}3.2.17.${mongo_url_extension|tgz}
"set version 3.4" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_enterprise_keyword|enterprise-}${mongo_url_platform|}3.4.10.${mongo_url_extension|tgz}
"set version latest" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_enterprise_keyword|"enterprise-"}${mongo_url_platform|}latest.${mongo_url_extension|tgz}
"run integration tests" :
command: shell.exec
params:
working_dir: "mongo-cxx-driver"
script: |
set -o verbose
set -o errexit
${start_mongo_orchestration}
${scons|scons} ${scons_flags} ${warning_flags} ${compile_flags} ${toolchain_flags} ${extrapath} ${dllpath} ${cpppath} ${libpath} ${orchestration_preset} integration
"run client tests" :
command: shell.exec
params:
working_dir: "mongo-cxx-driver"
script: |
set -o verbose
set -o errexit
${start_mongo_orchestration}
${scons|scons} ${scons_flags} ${warning_flags} ${compile_flags} ${toolchain_flags} ${extrapath} ${dllpath} ${cpppath} ${libpath} ${orchestration_preset} examples
pre:
- command: shell.exec
params:
script: |
set -o verbose
set -o errexit
rm -rf "mongo-cxx-driver"
if [ ! -e /data/db ]; then
mkdir /data/db
elif [ ! -d /data/db ]; then
echo "/data/db already exists and is not a directory!"
exit 1
fi
post:
- command: shell.exec
params:
script: |
set -o verbose
set -o errexit
cd mongo-cxx-driver && mongo-orchestration stop
${killall_mci|pkill -9 mongo-orchestration; pkill -9 mongod; pkill -9 mongos;}
#######################################
# Tasks #
#######################################
tasks:
- name: lint
commands:
- func: "fetch source"
- command: git.apply_patch
params:
directory: "mongo-cxx-driver"
- command: shell.exec
params:
working_dir: "mongo-cxx-driver"
script: |
set -o errexit
set -o verbose
${scons|scons} ${scons_flags} ${warning_flags} ${compile_flags} ${toolchain_flags} ${extrapath} ${dllpath} ${cpppath} ${libpath} lint
- name: compile
commands:
- func: "fetch source"
- command: git.apply_patch
params:
directory: "mongo-cxx-driver"
- command: shell.exec
params:
working_dir: "mongo-cxx-driver"
script: |
set -o errexit
set -o verbose
${scons|scons} ${scons_flags} ${warning_flags} ${compile_flags} ${parallel_compile_flags} ${toolchain_flags} ${extrapath} ${dllpath} ${cpppath} ${libpath} ${compile_target|all check-install}
- command: shell.exec
params:
working_dir: "mongo-cxx-driver"
script: |
set -o errexit
set -o verbose
tar -czf ../mongo-cxx-driver.tar.gz .
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: mongo-cxx-driver.tar.gz
remote_file: mongo-cxx-driver/${build_variant}/${revision}/artifacts/mongo-${build_id}.tar.gz
bucket: mciuploads
permissions: public-read
content_type: ${content_type|application/x-gzip}
- name: "unit-test"
depends_on:
- name: "compile"
commands:
- func: "fetch artifacts"
- command: shell.exec
params:
working_dir: "mongo-cxx-driver"
script: |
set -o verbose
${scons|scons} ${scons_flags} ${warning_flags} ${compile_flags} ${toolchain_flags} ${extrapath} ${dllpath} ${cpppath} ${libpath} unit
- name: "integration-test-2.2"
depends_on:
- name: "compile"
commands:
- func: "set version 2.2"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-2.4"
depends_on:
- name: "compile"
commands:
- func: "set version 2.4"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-2.6"
depends_on:
- name: "compile"
commands:
- func: "set version 2.6"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-3.0"
depends_on:
- name: "compile"
commands:
- func: "set version 3.0"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-3.0-with-WiredTiger"
depends_on:
- name: "compile"
commands:
- func: "set version 3.0"
- func: "use WiredTiger storage"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-3.2"
depends_on:
- name: "compile"
commands:
- func: "set version 3.2"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-3.2-with-MMAPv1"
depends_on:
- name: "compile"
commands:
- func: "set version 3.2"
- func: "use MMAPv1 storage"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-3.4"
depends_on:
- name: "compile"
commands:
- func: "set version 3.4"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-3.4-with-MMAPv1"
depends_on:
- name: "compile"
commands:
- func: "set version 3.4"
- func: "use MMAPv1 storage"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-latest"
depends_on:
- name: "compile"
commands:
- func: "set version latest"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-latest-with-MMAPv1"
depends_on:
- name: "compile"
commands:
- func: "set version latest"
- func: "use MMAPv1 storage"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-latest-with-auth"
depends_on:
- name: "compile"
commands:
- func: "set version latest"
- func: "fetch artifacts"
- func: "use auth"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "integration-test-latest-with-auth-and-MMAPv1"
depends_on:
- name: "compile"
commands:
- func: "set version latest"
- func: "use MMAPv1 storage"
- func: "fetch artifacts"
- func: "use auth"
- func: "fetch mongodb"
- func: "run integration tests"
- name: "client-test-2.2"
depends_on:
- name: "compile"
commands:
- func: "set version 2.2"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-2.4"
depends_on:
- name: "compile"
commands:
- func: "set version 2.4"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-2.6"
depends_on:
- name: "compile"
commands:
- func: "set version 2.6"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-3.0"
depends_on:
- name: "compile"
commands:
- func: "set version 3.0"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-3.0-with-WiredTiger"
depends_on:
- name: "compile"
commands:
- func: "set version 3.0"
- func: "use WiredTiger storage"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-3.2"
depends_on:
- name: "compile"
commands:
- func: "set version 3.2"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-3.2-with-MMAPv1"
depends_on:
- name: "compile"
commands:
- func: "set version 3.2"
- func: "use MMAPv1 storage"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-3.4"
depends_on:
- name: "compile"
commands:
- func: "set version 3.4"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-3.4-with-MMAPv1"
depends_on:
- name: "compile"
commands:
- func: "set version 3.4"
- func: "use MMAPv1 storage"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-latest"
depends_on:
- name: "compile"
commands:
- func: "set version latest"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
- name: "client-test-latest-with-MMAPv1"
depends_on:
- name: "compile"
commands:
- func: "set version latest"
- func: "use MMAPv1 storage"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run client tests"
#######################################
# Buildvariants #
#######################################
buildvariants:
#######################################
# Linux Buildvariants #
#######################################
## RHEL 5.5
- name: rhel55
display_name: "RHEL 5.5"
expansions:
<<: *scons_flags_64
<<: *parallel_compile_flags_proc
<<: *warning_flags_rhel55
<<: *cpppath_rhel55
<<: *libpath_rhel55_64
<<: *mongo_url_rhel55
<<: *mongo_orchestration_linux
run_on:
- rhel55-test
tasks: *latest_tests
## RHEL 5.5 32-bit
- name: rhel55-32-bit
display_name: "RHEL 5.5 32-bit"
expansions:
<<: *scons_flags_32
<<: *parallel_compile_flags_proc
<<: *warning_flags_rhel55
<<: *cpppath_rhel55
<<: *libpath_rhel55_32
<<: *mongo_url_rhel55_32
<<: *mongo_orchestration_linux
run_on:
- rhel55-test
# Need to test with mmapv1, as default storage engine (WiredTiger) doesn't have 32-bit support.
tasks: *latest_tests_with_mmapv1
## Ubuntu 1404
- name: ubuntu1404
display_name: "Ubuntu1404"
expansions:
<<: *scons_flags_64
<<: *parallel_compile_flags_proc
<<: *mongo_url_ubuntu1404
<<: *mongo_orchestration_linux
run_on:
- ubuntu1404-test
tasks: *storage_engine_tests
## Ubuntu 1404 DEBUG
- name: ubuntu1404-debug
display_name: "Ubuntu1404 dbg"
expansions:
<<: *compile_flags_debug
<<: *parallel_compile_flags_proc
<<: *scons_flags_64
<<: *mongo_url_ubuntu1404
<<: *mongo_orchestration_linux
run_on:
- ubuntu1404-test
tasks: *version_tests
## Ubuntu 1404 C++11
- name: ubuntu1404-cpp11
display_name: "Ubuntu1404 C++11"
expansions:
<<: *scons_flags_cpp11
<<: *parallel_compile_flags_proc
<<: *mongo_url_ubuntu1404
<<: *mongo_orchestration_linux
run_on:
- ubuntu1404-test
tasks: *latest_tests
#######################################
# OS X Buildvariants #
#######################################
## OS X 10.8
- name: os-x-107
display_name: "OS X 10.7"
expansions:
<<: *mongo_url_osx_1010
<<: *scons_flags_osx_1010
<<: *parallel_compile_flags_sysctl
<<: *extrapath_osx_1010
<<: *mongo_orchestration_osx
run_on:
- osx-1010
tasks: *osx_latest_tests
#######################################
# Windows Buildvariants #
#######################################
## Windows 32-bit (msvc2010)
## dynamic client and RT
- name: windows-32-msvc2010-dyn-dyn
display_name: "Win32(2010) dyn-dyn"
expansions:
<<: *windows_common
<<: *scons_flags_32_windows_dynamic
<<: *parallel_compile_flags_proc
<<: *mongo_url_windows32
<<: *with_msvc2010_32bit
compile_target: driver build-unit
run_on:
- windows-64-vs2010-compile
tasks:
- name: "compile"
- name: "unit-test"
## Windows 64-bit (msvc2010)
## static client and RT
- name: windows-64-msvc2010-static-static
display_name: "Win64(2010) static-static"
expansions:
<<: *windows_common
<<: *scons_flags_64_windows_static
<<: *parallel_compile_flags_proc
<<: *mongo_url_windows64
<<: *with_msvc2010
run_on:
- windows-64-vs2010-compile
tasks: *windows_latest_tests
## Windows 64-bit DEBUG DYNAMIC (msvc2010)
## dynamic client and RT
- name: windows-64-msvc2010-dbg-dyn-dyn
display_name: "Win64(2010) dbg dyn-dyn"
expansions:
<<: *windows_common
<<: *compile_flags_debug
<<: *parallel_compile_flags_proc
<<: *scons_flags_64_windows_dynamic
<<: *mongo_url_windows64
<<: *with_msvc2010
run_on:
- windows-64-vs2010-compile
tasks: *windows_latest_tests
## Windows 64-bit DYNAMIC (msvc2013)
## dynamic client and RT
- name: windows-64-msvc2013-dyn-dyn
display_name: "Win64(2013) dyn-dyn"
expansions:
<<: *windows_common
<<: *parallel_compile_flags_proc
<<: *scons_flags_64_windows_dynamic
<<: *mongo_url_windows64
<<: *with_msvc2013
run_on:
- windows-64-vs2013-compile
tasks: *windows_latest_tests
## Windows 64-bit (msvc2013) DYNAMIC-RT
## static client, dynamic RT
- name: windows-64-msvc-2013-static-dyn
display_name: "Win64(2013) static-dyn"
expansions:
<<: *windows_common
<<: *parallel_compile_flags_proc
<<: *scons_flags_64_windows_dynamic_rt
<<: *mongo_url_windows64
<<: *with_msvc2013
run_on:
- windows-64-vs2013-compile
tasks: *windows_latest_tests
## Windows 64-bit DYNAMIC (msvc2015)
## dynamic client and RT
- name: windows-64-msvc2015-dyn-dyn
display_name: "Win64(2015) dyn-dyn"
expansions:
<<: *windows_common
<<: *parallel_compile_flags_proc
<<: *scons_flags_64_windows_dynamic
<<: *mongo_url_windows64
<<: *with_msvc2015
run_on:
- windows-64-vs2015-compile
tasks: *windows_latest_tests