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 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797
|
#######################################
# C Driver Config for MCI #
#######################################
## Some variables for convenience:
c_driver_variables:
test_list: &std_tests
- name: "compile"
- name: "integration-test-latest"
## Note that the in 3.0, the default storage engine is MMAPv1 and
## WiredTiger is opt-in, but in latest 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: "integration-test-3.0"
- name: "integration-test-3.0-with-WiredTiger"
- name: "integration-test-latest"
- name: "integration-test-latest-with-MMAPv1"
release_archive: &release_archive_builder
- name: "releasearchive"
just_compile: &just_compile
- name: "compile"
compile_unix_variants: &compile_unix_variants
- name: "compileunixtest-c11"
- name: "compileunixtest-c99"
- name: "compileunixtest-openssl-sasl"
- name: "compileunixtest-openssl-nosasl"
- name: "compileunixtest-nossl-sasl"
- name: "compileunixtest-nossl-nosasl"
compile_most_unix_variants: &compile_most_unix_variants
- name: "compileunixtest-c99"
- name: "compileunixtest-openssl-sasl"
- name: "compileunixtest-openssl-nosasl"
- name: "compileunixtest-nossl-sasl"
- name: "compileunixtest-nossl-nosasl"
topology_test_list: &topology_tests
- name: "compile"
- name: "integration-test-2.4"
- name: "integration-test-2.4-replica-set"
- name: "integration-test-2.4-sharded"
- name: "integration-test-2.4-shard-multi"
- name: "integration-test-2.6"
- name: "integration-test-2.6-replica-set"
- name: "integration-test-2.6-sharded"
- name: "integration-test-2.6-shard-multi"
- name: "integration-test-3.0"
- name: "integration-test-3.0-replica-set"
- name: "integration-test-3.0-sharded"
- name: "integration-test-3.0-shard-multi"
- name: "integration-test-latest"
- name: "integration-test-latest-replica-set"
- name: "integration-test-latest-sharded"
- name: "integration-test-latest-shard-multi"
topology_test_no_auth_list: &topology_tests_no_auth
- name: "compile"
- name: "integration-test-2.4-no-auth"
- name: "integration-test-2.4-replica-set-no-auth"
- name: "integration-test-2.4-sharded-no-auth"
- name: "integration-test-2.6-no-auth"
- name: "integration-test-2.6-replica-set-no-auth"
- name: "integration-test-2.6-sharded-no-auth"
- name: "integration-test-3.0-no-auth"
- name: "integration-test-3.0-replica-set-no-auth"
- name: "integration-test-3.0-sharded-no-auth"
- name: "integration-test-latest-no-auth"
- name: "integration-test-latest-replica-set-no-auth"
- name: "integration-test-latest-sharded-no-auth"
topology_test_latest: &topology_tests_latest
- name: "compile"
- name: "integration-test-latest"
- name: "integration-test-latest-no-auth"
- name: "integration-test-latest-replica-set"
- name: "integration-test-latest-replica-set-no-auth"
- name: "integration-test-latest-sharded"
- name: "integration-test-latest-shard-multi"
- name: "integration-test-latest-sharded-no-auth"
ssl_tests_test_list: &ssl_tests_latest
- name: "compile"
- name: "integration-test-latest-ssl"
- name: "integration-test-latest-ssl-no-auth"
ssl_test_list: &ssl_tests
- name: "compile"
- name: "integration-test-3.0-ssl"
- name: "integration-test-3.0-ssl-no-auth"
- name: "integration-test-latest-ssl"
- name: "integration-test-latest-ssl-no-auth"
## Common download urls (merge in as hashes)
mongo_download_url_prefixes:
linuxppc64le: &mongo_url_linuxppc64le
mongo_url_prefix: "http://downloads.10gen.com/linux/mongodb-linux-ppc64le-enterprise-"
linux64: &mongo_url_linux64
mongo_url_prefix: "http://downloads.mongodb.org/linux/mongodb-linux-x86_64-"
ubuntu1204: &mongo_url_ubuntu1204
mongo_url_platform: "ubuntu1204-"
<<: *mongo_url_linux64
ubuntu1404: &mongo_url_ubuntu1404
mongo_url_platform: "ubuntu1404-"
<<: *mongo_url_linux64
windows64ssl: &mongo_url_windows64ssl
mongo_url_prefix: "http://downloads.10gen.com/win32/mongodb-win32-x86_64-enterprise-windows-64-"
mongo_url_platform: ""
windows64: &mongo_url_windows64
mongo_url_prefix: "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-"
mongo_url_platform: ""
windows32: &mongo_url_windows32
mongo_url_prefix: "http://downloads.mongodb.org/win32/mongodb-win32-i386-"
rhel70: &mongo_url_rhel70
mongo_url_platform: "rhel70-"
<<: *mongo_url_linux64
rhel62: &mongo_url_rhel62
mongo_url_platform: "rhel62-"
<<: *mongo_url_linux64
rhel55: &mongo_url_rhel55
mongo_url_platform: "rhel55-"
<<: *mongo_url_linux64
rhel55_32: &mongo_url_rhel55_32
mongo_url_prefix: "http://downloads.mongodb.org/linux/mongodb-linux-i686-"
osx-1010: &mongo_url_osx_1010
mongo_url_prefix: "http://downloads.mongodb.org/osx/mongodb-osx-x86_64-"
osx-1010: &mongo_url_osx_1010_enterprise
mongo_url_prefix: "http://downloads.mongodb.com/osx/mongodb-osx-x86_64-enterprise-"
solaris: &mongo_url_solaris
mongo_url_prefix: "http://downloads.mongodb.org/sunos5/mongodb-sunos5-x86_64-"
rhel71_ppc64le: &mongo_url_ppc64le_rhel71
mongo_url_platform: "rhel71-"
<<: *mongo_url_linuxppc64le
## Common sets of CFLAGS
cflags:
standard: &cflags_power8
cflags: "-mcpu=power8 -mtune=power8 -mcmodel=medium -Werror"
standard: &cflags_64
cflags: "-m64 -march=x86-64 -Werror"
standard_no_werror: &cflags_64_no_werror
cflags: "-m64 -march=x86-64"
standard_32: &cflags_32
# Until CDRIVER-1417, omit "-Werror"
cflags: "-m32 -march=i386"
osx_1010: &cflags_osx_1010
cflags: "-m64 -march=x86-64"
solaris_64: &cflags_solaris_64
cflags: "-m64 -march=x86-64"
configure:
standard: &configure_flags_default
configure_flags: "--enable-experimental-features --enable-html-docs=no --enable-man-pages=no --enable-yelp=no --enable-examples=no --enable-optimizations --enable-maintainer-flags --disable-silent-rules --disable-automatic-init-and-cleanup --with-libbson=bundled"
no_experimental: &configure_flags_no_experimental
configure_flags: "--enable-html-docs=no --enable-man-pages=no --enable-yelp=no --enable-examples=no --enable-optimizations --enable-maintainer-flags --disable-silent-rules --disable-automatic-init-and-cleanup --with-libbson=bundled"
## Extra $PATH entries
paths:
unix_path: &unix_path
extra_path:
osx_path: &osx_path
extra_path:
windows_path: &windows_path
extra_path: /cygdrive/c/mongo-c-driver/bin:/cygdrive/c/openssl/bin
solaris_path: &solaris_path
extra_path: /opt/mongodbtoolchain/bin
## Scripts that are shared between buildvariants
scripts:
mongo_orchestration:
windows: &mongo_orchestration_windows
start_mongo_orchestration: |
echo "Starting Mongo Orchestration..."
export MONGO_ORCHESTRATION_HOME=/tmp/orchestration-home
if [ -f "/cygdrive/c/tmp/orchestration-home/server.pid" ]; then
echo "Prior Mongo Orchestration?"
mongo-orchestration stop
fi
# This seems to alleviate issues starting Orchestration on Windows.
python -m virtualenv venv
cd venv
. Scripts/activate
git clone https://github.com/10gen/mongo-orchestration.git
cd mongo-orchestration
pip install .
cd ../..
mkdir -p /cygdrive/c/tmp/orchestration-home
rm -f /cygdrive/c/$MONGO_ORCHESTRATION_HOME/server.pid
echo From shell `date` > /cygdrive/c/tmp/orchestration-home/server.log
echo "{ \"releases\": { \"default\": \"c:\\\\mongodb\\\\bin\" }}" > orchestration.config
mongo-orchestration -f orchestration.config -e default -s wsgiref start --socket-timeout-ms=60000 --bind=127.0.0.1 --enable-majority-read-concern
curl -s http://localhost:8889/
unix: &mongo_orchestration_unix
start_mongo_orchestration: |
echo "Starting Mongo Orchestration..."
export MONGO_ORCHESTRATION_HOME=/tmp/orchestration-home
set +o errexit
if [ -f /tmp/orchestration-home/server.pid ]; then
echo "Prior Mongo Orchestration?"
kill `cat /tmp/orchestration-home/server.pid`
fi
killall mongod mongos
set -o errexit
mkdir -p /data/db
mkdir -p $MONGO_ORCHESTRATION_HOME
rm -f $MONGO_ORCHESTRATION_HOME/server.pid
echo From shell `date` > $MONGO_ORCHESTRATION_HOME/server.log
echo "{ \"releases\": { \"default\": \"`pwd`/mongodb/bin\" } }" > orchestration.config
TMPDIR=/data/db mongo-orchestration -f orchestration.config -e default start --socket-timeout-ms=60000 --bind=127.0.0.1 --enable-majority-read-concern
curl -s http://localhost:8889/
start_topology_command: &start_topology_command
start_topology: |
curl -s --data @"$ORCHESTRATION_FILE" "$ORCHESTRATION_URL"
./mongodb/bin/mongo $MONGO_SHELL_CONNECTION_FLAGS --eval 'printjson(db.serverBuildInfo())' admin
./mongodb/bin/mongo $MONGO_SHELL_CONNECTION_FLAGS --eval 'printjson(db.adminCommand({getCmdLineOpts:1}))' admin
./mongodb/bin/mongo $MONGO_SHELL_CONNECTION_FLAGS --eval 'printjson(db.isMaster())' admin
compile:
osx_openssl: &compile_osx_openssl
compile_script: |
set -o errexit
set -o verbose
./autogen.sh --enable-optimizations --enable-html-docs=no --enable-man-pages=no --enable-yelp=no --enable-examples=no --enable-sasl --enable-ssl=openssl --enable-maintainer-flags --enable-debug --with-libbson=bundled
make -j8
make abicheck
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
osx_nativessl: &compile_osx_nativessl
compile_script: |
set -o errexit
set -o verbose
./autogen.sh --enable-optimizations --enable-html-docs=no --enable-man-pages=no --enable-yelp=no --enable-examples=no --enable-sasl --enable-ssl=darwin --enable-maintainer-flags --enable-debug --with-libbson=bundled
make -j8
make abicheck
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
osx_nossl: &compile_osx_nossl
compile_script: |
set -o errexit
set -o verbose
./autogen.sh --enable-optimizations --enable-html-docs=no --enable-man-pages=no --enable-yelp=no --enable-examples=no --enable-sasl --enable-ssl=no --enable-maintainer-flags --enable-debug --with-libbson=bundled
make -j8
make abicheck
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
unix_openssl11: &compile_unix_openssl11
compile_script: |
set -o errexit
set -o verbose
prefix=`pwd`/openssl
curl -s https://openssl.org/source/openssl-1.1.0-pre6.tar.gz --output openssl.tar.gz
tar zxvf openssl.tar.gz
cd openssl-1.1.0-pre6
./config no-zlib no-weak-ssl-ciphers no-ssl3-method no-ssl3 --prefix=$prefix/ --openssldir=$prefix
make && make install
cd ..
export LDFLAGS="-L$prefix/lib -lssl -lcrypto"
export SSL_LIBS="-L$prefix/lib -lssl -lcrypto"
export SSL_CFLAGS="-I$prefix/include"
./autogen.sh --enable-optimizations --enable-html-docs=no --enable-man-pages=no --enable-yelp=no --enable-examples=no --enable-sasl --enable-ssl=openssl --enable-maintainer-flags --enable-debug --with-libbson=bundled
make -j8
make abicheck
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
unix: &compile_unix
compile_script: |
set -o errexit
set -o verbose
./autogen.sh --enable-optimizations --enable-html-docs=no --enable-man-pages=no --enable-yelp=no --enable-examples=no --enable-sasl --enable-ssl=openssl --enable-maintainer-flags --enable-debug --with-libbson=bundled
make -j8
make abicheck
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
unix32: &compile_unix_32
compile_script: |
set -o errexit
set -o verbose
# No, SSL, SASL, or ABI check.
./autogen.sh --build=i386-pc-linux-gnu --enable-experimental-features --enable-optimizations --enable-html-docs=no --enable-man-pages=no --enable-yelp=no --enable-examples=no --enable-ssl=no --enable-maintainer-flags=no --enable-debug --with-libbson=bundled
make -j8
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
solaris64: &compile_solaris64
compile_script: |
set -o errexit
set -o verbose
sudo /opt/csw/bin/pkgutil -y -i sasl_dev
export SASL_CFLAGS="-I/opt/csw/include/"
export SASL_LIBS="-L/opt/csw/lib/amd64/ -lsasl2"
./autogen.sh --enable-optimizations --enable-man-pages --enable-sasl --enable-ssl --enable-maintainer-flags --enable-debug --with-libbson=bundled
make
make abicheck
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
solaris: &compile_solaris
compile_script: |
set -o errexit
set -o verbose
./autogen.sh --enable-optimizations --enable-man-pages --enable-sasl --enable-ssl --enable-maintainer-flags --enable-debug --with-libbson=bundled
make
make abicheck
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
msvc: &compile_msvc
compile_script: |
set -o errexit
set -o verbose
cmake="/cygdrive/c/cmake/bin/cmake"
git submodule update --init
cd src/libbson
echo "MSBUILD: $MSBUILD, GENERATOR: $GENERATOR, CMAKE_DEFS: $CMAKE_DEFS"
"$cmake" -G "$GENERATOR" "-DCMAKE_INSTALL_PREFIX=C:/mongo-c-driver"
"$MSBUILD" /m ALL_BUILD.vcxproj
"$MSBUILD" /m INSTALL.vcxproj
cd ../..
"$cmake" -G "$GENERATOR" "-DCMAKE_INSTALL_PREFIX=C:/mongo-c-driver" "-DBSON_ROOT_DIR=C:/mongo-c-driver" $CMAKE_DEFS
"$MSBUILD" /m ALL_BUILD.vcxproj
"$MSBUILD" /m INSTALL.vcxproj
(cd src/libbson && ./Debug/test-libbson.exe --no-fork -d)
connection_flags:
ssl: &connection_flags_ssl
set_connection_flags: |
export MONGO_SHELL_CONNECTION_FLAGS="$MONGO_SHELL_CONNECTION_FLAGS --host localhost --ssl --sslCAFile=/tmp/orchestration-home/ca.pem --sslPEMKeyFile=/tmp/orchestration-home/client.pem"
export MONGOC_TEST_SSL_WEAK_CERT_VALIDATION=on
export MONGOC_TEST_SSL_PEM_FILE=/tmp/orchestration-home/client.pem
export MONGOC_TEST_SSL_CA_FILE=/tmp/orchestration-home/ca.pem
winssl: &connection_flags_winssl
set_connection_flags: |
export MONGO_SHELL_CONNECTION_FLAGS="$MONGO_SHELL_CONNECTION_FLAGS --host localhost --ssl --sslCAFile=/cygdrive/c/tmp/orchestration-home/ca.pem --sslPEMKeyFile=/cygdrive/c/tmp/orchestration-home/client.pem"
export MONGOC_TEST_SSL_WEAK_CERT_VALIDATION=on
export MONGOC_TEST_SSL_PEM_FILE=/cygdrive/c/tmp/orchestration-home/client.pem
export MONGOC_TEST_SSL_CA_FILE=/cygdrive/c/tmp/orchestration-home/ca.pem
integration_tests:
msvc: &run_integration_tests_msvc
run_integration_tests: |
export PATH=$PATH:`pwd`/tests:`pwd`/Debug:`pwd`/src/libbson/Debug
export MONGOC_TEST_FUTURE_TIMEOUT_MS=30000
export MONGOC_ENABLE_MAJORITY_READ_CONCERN=on
./Debug/test-libmongoc.exe -d -F test-results.json
solaris: &run_integration_tests_solaris
run_integration_tests: |
export MONGOC_TEST_FUTURE_TIMEOUT_MS=30000
export MONGOC_ENABLE_MAJORITY_READ_CONCERN=on
sudo /opt/csw/bin/pkgutil -y -i sasl_dev
export SASL_CFLAGS="-I/opt/csw/include/"
export SASL_LIBS="-L/opt/csw/lib/amd64/ -lsasl2"
export LD_LIBRARY_PATH="/opt/csw/lib/amd64/:.libs:src/libbson/.libs"
make TEST_ARGS="-d -F test-results.json" test
unix: &run_integration_tests_unix
run_integration_tests: |
export MONGOC_TEST_FUTURE_TIMEOUT_MS=30000
export MONGOC_ENABLE_MAJORITY_READ_CONCERN=on
export LD_LIBRARY_PATH=".libs:src/libbson/.libs"
# This libtool wrapper script was built in a unique dir like
# "/data/mci/998e754a0d1ed79b8bf733f405b87778/mongo-c-driver",
# replace its absolute path with "." so it can run in the CWD.
sed -i'' 's/\/data\/mci\/[a-z0-9]\{32\}\/mongo-c-driver/./g' test-libmongoc
make TEST_ARGS="-d -F test-results.json" test
unix_openssl11: &run_integration_tests_unix_openssl11
run_integration_tests: |
prefix=`pwd`/openssl
curl -s https://openssl.org/source/openssl-1.1.0-pre6.tar.gz --output openssl.tar.gz
tar zxvf openssl.tar.gz
cd openssl-1.1.0-pre6
./config no-zlib no-weak-ssl-ciphers no-ssl3-method no-ssl3 --prefix=$prefix/ --openssldir=$prefix
make && make install
cd ..
LD_EXTRA=":$prefix/lib"
export MONGOC_TEST_FUTURE_TIMEOUT_MS=30000
export MONGOC_ENABLE_MAJORITY_READ_CONCERN=on
export LD_LIBRARY_PATH=".libs:src/libbson/.libs$LD_EXTRA"
# This libtool wrapper script was built in a unique dir like
# "/data/mci/998e754a0d1ed79b8bf733f405b87778/mongo-c-driver",
# replace its absolute path with "." so it can run in the CWD.
sed -i'' 's/\/data\/mci\/[a-z0-9]\{32\}\/mongo-c-driver/./g' test-libmongoc
make TEST_ARGS="-d -F test-results.json" test
osx: &run_integration_tests_osx
run_integration_tests: |
export MONGOC_TEST_FUTURE_TIMEOUT_MS=30000
export MONGOC_ENABLE_MAJORITY_READ_CONCERN=on
export DYLD_LIBRARY_PATH=".libs:src/libbson/.libs"
make TEST_ARGS="-d -F test-results.json" test
## Other OS-specific attributes, grouped by OS
unix_common_openssl11: &unix_common_openssl11
<<: *compile_unix_openssl11
<<: *mongo_orchestration_unix
<<: *run_integration_tests_unix_openssl11
<<: *start_topology_command
<<: *unix_path
unix_common_32: &unix_common_32
<<: *compile_unix_32
<<: *mongo_orchestration_unix
<<: *run_integration_tests_unix
<<: *start_topology_command
<<: *unix_path
unix_common: &unix_common
<<: *compile_unix
<<: *mongo_orchestration_unix
<<: *run_integration_tests_unix
<<: *start_topology_command
<<: *unix_path
solaris_common: &solaris_common
<<: *unix_common
<<: *compile_solaris
<<: *solaris_path
solaris64_common: &solaris64_common
<<: *compile_unix
<<: *mongo_orchestration_unix
<<: *run_integration_tests_solaris
<<: *start_topology_command
<<: *unix_path
<<: *compile_solaris64
<<: *solaris_path
ssl: &ssl
<<: *connection_flags_ssl
## Misc. for Windows builds
windows_compilers:
msvc2010_32bit: &with_msvc2010_32bit
generator: Visual Studio 10 2010
# Evergreen builders only have 64-bit SSL and SASL available.
cmake_defs: "-DENABLE_SSL:BOOL=OFF -DENABLE_SASL:BOOL=OFF -DENABLE_EXPERIMENTAL_FEATURES=ON"
msbuild: /cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
msvc2010: &with_msvc2010
generator: Visual Studio 10 2010 Win64
msbuild: /cygdrive/c/Windows/Microsoft.NET/Framework64/v4.0.30319/MSBuild.exe
dllpath: "c:/openssl/bin,c:/sasl/bin"
msvc2013_32bit: &with_msvc2013_32bit
generator: Visual Studio 12 2013
# Evergreen builders only have 64-bit SSL and SASL available.
cmake_defs: "-DENABLE_SSL:BOOL=OFF -DENABLE_SASL:BOOL=OFF -DENABLE_EXPERIMENTAL_FEATURES=ON"
msbuild: /cygdrive/c/Program Files (x86)/MSBuild/12.0/Bin/MSBuild.exe
msvc2013: &with_msvc2013
generator: Visual Studio 12 2013 Win64
msbuild: /cygdrive/c/Program Files (x86)/MSBuild/12.0/Bin/MSBuild.exe
dllpath: "c:/openssl/bin,c:/sasl/bin"
msvc2013: &with_msvc2013_nativessl
generator: Visual Studio 12 2013 Win64
msbuild: /cygdrive/c/Program Files (x86)/MSBuild/12.0/Bin/MSBuild.exe
dllpath: "c:/openssl/bin,c:/sasl/bin"
cmake_defs: "-DENABLE_SSL=WINDOWS -DENABLE_EXPERIMENTAL_FEATURES=ON"
msvc2015_32bit: &with_msvc2015_32bit
generator: Visual Studio 14 2015
# Evergreen builders only have 64-bit SSL and SASL available.
cmake_defs: "-DENABLE_SSL:BOOL=OFF -DENABLE_SASL:BOOL=OFF -DENABLE_EXPERIMENTAL_FEATURES=ON"
msbuild: /cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe
msvc2015: &with_msvc2015
generator: Visual Studio 14 2015 Win64
msbuild: /cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe
dllpath: "c:/openssl/bin,c:/sasl/bin"
msvc2015: &with_msvc2015_nativessl
generator: Visual Studio 14 2015 Win64
msbuild: /cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe
dllpath: "c:/openssl/bin,c:/sasl/bin"
cmake_defs: "-DENABLE_SSL=WINDOWS -DENABLE_EXPERIMENTAL_FEATURES=ON"
msvc2015: &with_msvc2015_openssl
generator: Visual Studio 14 2015 Win64
msbuild: /cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe
dllpath: "c:/openssl/bin,c:/sasl/bin"
cmake_defs: "-DENABLE_SSL=OPENSSL -DENABLE_EXPERIMENTAL_FEATURES=ON"
msvc2015: &with_msvc2015_no_experimental
generator: Visual Studio 14 2015 Win64
msbuild: /cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe
dllpath: "c:/openssl/bin,c:/sasl/bin"
cmake_defs: "-DENABLE_SSL=OPENSSL" # Omit "ENABLE_EXPERIMENTAL_FEATURES"
## all windows buildvariants have these attributes in common
windows_common: &windows_common
mongo_url_extension: "zip"
extension: ".exe"
windows: true
<<: *windows_path
<<: *mongo_orchestration_windows
<<: *start_topology_command
msvc_common: &msvc_common
<<: *windows_common
<<: *compile_msvc
<<: *run_integration_tests_msvc
#######################################
# Functions #
#######################################
functions:
"fetch releasearchive" :
command: shell.exec
params:
script: |
set -o verbose
set -o errexit
rm -rf mongo-c-driver*
ls -la
curl -s https://s3.amazonaws.com/mciuploads/mongo-c-driver/${revision}/${version_id}/artifacts/mongo-c-driver-archive.tar.gz --output mongo-c-driver-archive.tar.gz
tar zxf mongo-c-driver-archive.tar.gz
rm mongo-c-driver-archive.tar.gz
mv mongo-c-driver* mongo-c-driver
"fetch source" :
command: git.get_project
params:
directory: mongo-c-driver
"fetch mongodb" :
command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
set -o verbose
set -o errexit
ls -la
curl -s ${mongo_url} --output mongo-archive.${ext|tgz}
${decompress} mongo-archive.${ext|tgz}
mv mongodb* mongodb
chmod +x ./mongodb/bin/mongod${extension}
if [ ${windows|false} = true ]; then
rm -rf /cygdrive/c/mongodb
cp -r mongodb /cygdrive/c/mongodb
fi
"create working directory" :
command: shell.exec
params:
script: |
rm -rf mongo-c-driver
mkdir mongo-c-driver
# MCI's S3 mechanism doesn't support symlinks, use curl instead of s3.get
"fetch artifacts" :
command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
set -o verbose
set -o errexit
ls -la
curl http://s3.amazonaws.com/mciuploads/mongo-c-driver/${build_variant}/${revision}/artifacts/mongo-${build_id}.tar.gz -o ${build_id}.tar.gz --silent --max-time 120
tar zxf ${build_id}.tar.gz
"compile function" :
command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
export PATH=${extra_path}:$PATH
export GENERATOR="${generator}" # For CMake on Windows
export MSBUILD="${msbuild}" # For CMake on Windows
export CMAKE_DEFS="${cmake_defs}" # For CMake on Windows
export CFLAGS="${cflags}"
${compile_script}
"quick unix compile function" :
command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
set -o errexit
set -o verbose
CC=${CC} CFLAGS="${CFLAGS}" ./autogen.sh ${configure_flags}
make -j8
"quick unix test function" :
command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
make abicheck
(cd src/libbson && make test TEST_ARGS="--no-fork -d")
MONGOC_TEST_SKIP_LIVE=on MONGOC_TEST_SKIP_SLOW=on make TEST_ARGS="-d -F test-results.json" test
"set topology standalone" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "auth.json"
- key: "topology_type"
value: "server"
"set topology standalone ssl" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "auth-ssl.json"
- key: "topology_type"
value: "server"
"set topology replica set" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "auth.json"
- key: "topology_type"
value: "replica_set"
"set topology sharded" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "auth.json"
- key: "topology_type"
value: "sharded_cluster"
"connect to two mongos servers" :
command: expansions.update
params:
updates:
- key: "mongoc_test_uri"
value: "mongodb://localhost:27017,localhost:27018"
"set topology standalone ssl no auth" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "basic-ssl.json"
- key: "topology_type"
value: "server"
"set topology standalone no auth" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "basic.json"
- key: "topology_type"
value: "server"
"set topology replica set no auth" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "basic.json"
- key: "topology_type"
value: "replica_set"
"set topology sharded no auth" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "basic.json"
- key: "topology_type"
value: "sharded_cluster"
"use WiredTiger storage" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "wiredtiger.json"
- key: "topology_type"
value: "server"
"use MMAPv1 storage" :
command: expansions.update
params:
updates:
- key: "orchestration_file"
value: "mmapv1.json"
- key: "topology_type"
value: "server"
"set version 2.4" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}2.4.14.${mongo_url_extension|tgz}
"set version 2.6" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}2.6.10.${mongo_url_extension|tgz}
"set version 3.0" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_platform|}3.0.5.${mongo_url_extension|tgz}
"set version latest" :
command: expansions.update
params:
updates:
- key: "mongo_url"
value: ${mongo_url_prefix}${mongo_url_platform|}latest.${mongo_url_extension|tgz}
"copy certificates" :
command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
set -o errexit
set -o verbose
if [ ${windows|false} = true ]; then
mkdir -p /cygdrive/c/tmp/orchestration-home/lib
cp -rf tests/x509gen/* /cygdrive/c/tmp/orchestration-home
cp -f /cygdrive/c/tmp/orchestration-home/client.pem /cygdrive/c/tmp/orchestration-home/lib/
else
mkdir -p /tmp/orchestration-home/lib
cp -rf tests/x509gen/* /tmp/orchestration-home
cp -f /tmp/orchestration-home/client.pem /tmp/orchestration-home/lib/
fi
"run integration tests" :
command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
set -o errexit
set -o verbose
if [ ${use_auth|false} = true ]; then
export MONGOC_TEST_USER=bob
export MONGOC_TEST_PASSWORD=pwd123
export MONGO_SHELL_CONNECTION_FLAGS="-ubob -ppwd123"
fi
export ORCHESTRATION_FILE="orchestration_configs/${topology_type}s/${orchestration_file}"
export ORCHESTRATION_URL="http://localhost:8889/v1/${topology_type}s"
export MONGO_ORCHESTRATION_HOME=/tmp/orchestration-home
# Run this function on exit.
result=1
done=false
finish () {
set +o errexit
if [ "$done" = false ]; then
# There was an error.
mongo-orchestration stop
echo "ORCHESTRATION LOG"
if [ ${windows|false} = true ]; then
cat /cygdrive/c/tmp/orchestration-home/server.log
else
cat /tmp/orchestration-home/server.log
fi
echo " END OF ORCHESTRATION LOG"
fi
exit $result
}
trap finish EXIT
${set_connection_flags}
${start_mongo_orchestration}
${start_topology}
set +o errexit
# Use multi-mongos URI, or empty for default.
export MONGOC_TEST_URI="${mongoc_test_uri}"
${run_integration_tests}
result=$?
mongo-orchestration stop
done=true
"report results" :
command: attach.results
params:
file_location: "mongo-c-driver/test-results.json"
#######################################
# Tasks #
#######################################
tasks:
- name: releasearchive
commands:
- func: "fetch source"
- command: git.apply_patch
params:
directory: "mongo-c-driver"
- command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
set -o errexit
set -o verbose
./autogen.sh --enable-man-pages --enable-html-docs --enable-sasl --enable-ssl --enable-maintainer-flags --enable-debug --with-libbson=bundled
make dist
mv mongo-c-driver*.tar.gz ../mongo-c-driver-archive.tar.gz
ls -la
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: mongo-c-driver-archive.tar.gz
remote_file: mongo-c-driver/${revision}/${version_id}/artifacts/mongo-c-driver-archive.tar.gz
bucket: mciuploads
permissions: public-read
content_type: ${content_type|application/x-gzip}
- name: compileunixtest-c11
commands:
- command: git.get_project
params:
directory: mongo-c-driver
- func: "quick unix compile function"
vars:
configure_flags: ${configure_flags}
CFLAGS: "${CFLAGS} -std=c11 -D_XOPEN_SOURCE=600"
CC: ${CC|gcc}
- func: "quick unix test function"
- name: compileunixtest-c99
commands:
- command: git.get_project
params:
directory: mongo-c-driver
- func: "quick unix compile function"
vars:
configure_flags: ${configure_flags}
CFLAGS: "${CFLAGS} -std=c99 -D_XOPEN_SOURCE=600"
CC: ${CC|gcc}
- func: "quick unix test function"
- name: compileunixtest-c89
commands:
- command: git.get_project
params:
directory: mongo-c-driver
- func: "quick unix compile function"
vars:
configure_flags: ${configure_flags}
CFLAGS: "${CFLAGS} -std=c89 -D_POSIX_C_SOURCE=200112L"
CC: ${CC|gcc}
- func: "quick unix test function"
- name: compileunixtest-openssl-sasl
commands:
- command: git.get_project
params:
directory: mongo-c-driver
- func: "quick unix compile function"
vars:
configure_flags: "${configure_flags} --enable-sasl --enable-ssl=openssl"
CFLAGS: ${CFLAGS}
CC: ${CC|gcc}
- func: "quick unix test function"
- name: compileunixtest-openssl-nosasl
commands:
- command: git.get_project
params:
directory: mongo-c-driver
- func: "quick unix compile function"
vars:
configure_flags: "${configure_flags} --enable-sasl=no --enable-ssl=openssl"
CFLAGS: ${CFLAGS}
CC: ${CC|gcc}
- func: "quick unix test function"
- name: compileunixtest-nossl-sasl
commands:
- command: git.get_project
params:
directory: mongo-c-driver
- func: "quick unix compile function"
vars:
configure_flags: "${configure_flags} --enable-sasl --enable-ssl=no"
CFLAGS: ${CFLAGS}
CC: ${CC|gcc}
- func: "quick unix test function"
- name: compileunixtest-nossl-nosasl
commands:
- command: git.get_project
params:
directory: mongo-c-driver
- func: "quick unix compile function"
vars:
configure_flags: "${configure_flags} --enable-sasl=no --enable-ssl=no"
CFLAGS: ${CFLAGS}
CC: ${CC|gcc}
- func: "quick unix test function"
- name: compile
commands:
- func: "fetch source"
- command: git.apply_patch
params:
directory: "mongo-c-driver"
- func: "compile function"
- command: shell.exec
params:
working_dir: "mongo-c-driver"
script: |
set -o errexit
set -o verbose
tar czf ../mongo-c-driver.tar.gz .
- command: s3.put
params:
aws_key: ${aws_key}
aws_secret: ${aws_secret}
local_file: mongo-c-driver.tar.gz
remote_file: mongo-c-driver/${build_variant}/${revision}/artifacts/mongo-${build_id}.tar.gz
bucket: mciuploads
permissions: public-read
content_type: ${content_type|application/x-gzip}
- name: "integration-test-2.4"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone"
- func: "set version 2.4"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-2.4-replica-set"
depends_on:
- name: "compile"
commands:
- func: "set topology replica set"
- func: "set version 2.4"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-2.4-sharded"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded"
- func: "set version 2.4"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-2.4-shard-multi"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded"
- func: "set version 2.4"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "connect to two mongos servers"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-2.6"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone"
- func: "set version 2.6"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-2.6-replica-set"
depends_on:
- name: "compile"
commands:
- func: "set topology replica set"
- func: "set version 2.6"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-2.6-sharded"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded"
- func: "set version 2.6"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-2.6-shard-multi"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded"
- func: "set version 2.6"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "connect to two mongos servers"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-3.0"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-3.0-replica-set"
depends_on:
- name: "compile"
commands:
- func: "set topology replica set"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-3.0-sharded"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-3.0-shard-multi"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "connect to two mongos servers"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-latest"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-latest-replica-set"
depends_on:
- name: "compile"
commands:
- func: "set topology replica set"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-latest-sharded"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-latest-shard-multi"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "connect to two mongos servers"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-2.4-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone no auth"
- func: "set version 2.4"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-2.4-replica-set-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology replica set no auth"
- func: "set version 2.4"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-2.4-sharded-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded no auth"
- func: "set version 2.4"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-2.6-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone no auth"
- func: "set version 2.6"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-2.6-replica-set-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology replica set no auth"
- func: "set version 2.6"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-2.6-sharded-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded no auth"
- func: "set version 2.6"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-3.0-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone no auth"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-3.0-replica-set-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology replica set no auth"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-3.0-sharded-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded no auth"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-latest-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone no auth"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-latest-replica-set-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology replica set no auth"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-latest-sharded-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology sharded no auth"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-latest-with-MMAPv1"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone"
- func: "set version latest"
- func: "use MMAPv1 storage"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-3.0-with-WiredTiger"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone"
- func: "set version 3.0"
- func: "use WiredTiger storage"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-3.0-ssl"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone ssl"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "copy certificates"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-3.0-ssl-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone ssl no auth"
- func: "set version 3.0"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "copy certificates"
- func: "run integration tests"
- func: "report results"
- name: "integration-test-latest-ssl"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone ssl"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "copy certificates"
- func: "run integration tests"
vars:
use_auth: true
- func: "report results"
- name: "integration-test-latest-ssl-no-auth"
depends_on:
- name: "compile"
commands:
- func: "set topology standalone ssl no auth"
- func: "set version latest"
- func: "create working directory"
- func: "fetch artifacts"
- func: "fetch mongodb"
- func: "copy certificates"
- func: "run integration tests"
- func: "report results"
#######################################
# Buildvariants #
#######################################
buildvariants:
#######################################
# Linux Buildvariants #
#######################################
- name: ubuntu-1404-64-release
display_name: "Release Archive Creator"
expansions:
<<: *cflags_64
<<: *mongo_url_ubuntu1404
<<: *unix_common
run_on:
- ubuntu1404-test
tasks: *release_archive_builder
## Ubuntu 1204
- name: ubuntu-1204-64
display_name: "Ubu 12 gcc-4.6.3 64"
expansions:
<<: *cflags_64
<<: *mongo_url_ubuntu1204
<<: *unix_common
run_on:
- ubuntu1204-test
tasks: *topology_tests
- name: rhel-62
display_name: "RHEL 6.2 64"
expansions:
<<: *cflags_64_no_werror
<<: *mongo_url_rhel62
<<: *unix_common
run_on:
- rhel62-test
tasks: *topology_tests
- name: rhel-70
display_name: "RHEL 7.0 64"
expansions:
<<: *cflags_64
<<: *mongo_url_rhel70
<<: *unix_common
run_on:
- rhel70
tasks: *topology_tests
- name: rhel-72-zseries
display_name: "RHEL 7.2 zSeries"
expansions:
<<: *unix_common
run_on:
- rhel72-zseries-build
tasks: *just_compile
- name: rhel-71-power8
display_name: "RHEL 7.1 Power8"
expansions:
<<: *cflags_power8
<<: *mongo_url_ppc64le_rhel71
<<: *unix_common
run_on:
- rhel71-power8-test
tasks: *topology_tests_latest
- name: rhel-71-power8-ssl
display_name: "RHEL 7.1 Power8 SSL"
expansions:
<<: *cflags_power8
<<: *mongo_url_ppc64le_rhel71
<<: *unix_common
<<: *ssl
run_on:
- rhel71-power8-test
tasks: *ssl_tests_latest
## Ubuntu 1404
- name: ubuntu-1404-32
display_name: "Ubu 14 gcc-4.8.4 32"
expansions:
<<: *cflags_32
<<: *mongo_url_ubuntu1404
<<: *unix_common_32
run_on:
- ubuntu1404-test
tasks: *topology_tests_no_auth
- name: ubuntu-1404-64
display_name: "Ubu 14 gcc-4.8.4 64"
expansions:
<<: *cflags_64
<<: *mongo_url_ubuntu1404
<<: *unix_common
run_on:
- ubuntu1404-test
tasks: *topology_tests
## Ubuntu 1404
- name: ubuntu-1404-64-ssl
display_name: "Ubu 14 gcc-4.8.4 64 SSL"
expansions:
<<: *cflags_64
<<: *mongo_url_ubuntu1404
<<: *unix_common
<<: *ssl
run_on:
- ubuntu1404-test
tasks: *ssl_tests
- name: ubuntu-1404-64-openssl1.1
display_name: "Ubu 14 gcc-4.8.4 64 OpenSSL 1.1"
expansions:
<<: *cflags_64_no_werror
<<: *mongo_url_ubuntu1404
<<: *unix_common_openssl11
<<: *ssl
run_on:
- ubuntu1404-test
tasks: *ssl_tests
#######################################
# OS X Buildvariants #
#######################################
- name: os-x-1010-64-nossl
display_name: "OSX 10.10 clang 64 NOSSL"
expansions:
<<: *mongo_url_osx_1010
<<: *cflags_osx_1010
<<: *compile_osx_nossl
<<: *mongo_orchestration_unix
<<: *run_integration_tests_osx
<<: *start_topology_command
<<: *unix_path
<<: *osx_path
run_on:
- osx-1010
tasks: *topology_tests_no_auth
- name: os-x-1010-64-openssl
display_name: "OSX 10.10 clang 64 OpenSSL"
expansions:
<<: *mongo_url_osx_1010_enterprise
<<: *cflags_osx_1010
<<: *compile_osx_openssl
<<: *mongo_orchestration_unix
<<: *run_integration_tests_osx
<<: *start_topology_command
<<: *unix_path
<<: *osx_path
<<: *ssl
run_on:
- osx-1010
tasks: *ssl_tests_latest
- name: os-x-1010-64-nativessl
display_name: "OSX 10.10 clang 64 NativeSSL"
expansions:
<<: *mongo_url_osx_1010_enterprise
<<: *cflags_osx_1010
<<: *compile_osx_nativessl
<<: *mongo_orchestration_unix
<<: *run_integration_tests_osx
<<: *start_topology_command
<<: *unix_path
<<: *osx_path
<<: *ssl
run_on:
- osx-1010
tasks: *ssl_tests_latest
#######################################
# Windows Buildvariants #
#######################################
- name: windows-32-vs2010
display_name: "Win VS2010 32"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64
<<: *with_msvc2010_32bit
run_on:
- windows-64-vs2010-compile
tasks: *topology_tests_no_auth
- name: windows-64-vs2010
display_name: "Win VS2010 64"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64
<<: *with_msvc2010
run_on:
- windows-64-vs2010-compile
tasks: *topology_tests
- name: windows-32-vs2013
display_name: "Win VS2013 32"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64
<<: *with_msvc2013_32bit
run_on:
- windows-64-vs2013-compile
tasks: *topology_tests_no_auth
- name: windows-64-vs2013
display_name: "Win VS2013 64"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64
<<: *with_msvc2013
run_on:
- windows-64-vs2013-compile
tasks: *topology_tests
- name: windows-64-vs2013-nativessl
display_name: "Win VS2013 64 NativeSSL"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64ssl
<<: *with_msvc2013_nativessl
<<: *ssl
run_on:
- windows-64-vs2013-compile
tasks: *ssl_tests
- name: windows-32-vs2015
display_name: "Win VS2015 32"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64
<<: *with_msvc2015_32bit
run_on:
- windows-64-vs2015-compile
tasks: *topology_tests_no_auth
- name: windows-64-vs2015
display_name: "Win VS2015 64"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64
<<: *with_msvc2015
run_on:
- windows-64-vs2015-compile
tasks: *topology_tests
- name: windows-64-vs2015-no-experimental
display_name: "Win VS2015 64 No-Experimental"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64
<<: *with_msvc2015_no_experimental
run_on:
- windows-64-vs2015-compile
tasks:
- compile
- name: windows-64-vs2015-nativessl
display_name: "Win VS2015 64 NativeSSL"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64ssl
<<: *with_msvc2015_nativessl
<<: *ssl
run_on:
- windows-64-vs2015-compile
tasks: *ssl_tests
- name: windows-64-vs2015-openssl
display_name: "Win VS2015 64 OpenSSL"
expansions:
<<: *msvc_common
<<: *mongo_url_windows64ssl
<<: *with_msvc2015_openssl
<<: *ssl
run_on:
- windows-64-vs2015-compile
tasks: *ssl_tests
#######################################
# Solaris Buildvariant #
#######################################
- name: solaris-32-bit
display_name: "Sol gcc-4.8.2 32"
expansions:
<<: *solaris_common
<<: *cflags_32
<<: *mongo_url_solaris
run_on:
- solaris
tasks: *topology_tests
- name: solaris-64-bit
display_name: "Sol gcc-4.8.2 64"
expansions:
<<: *solaris64_common
<<: *cflags_solaris_64
<<: *mongo_url_solaris
run_on:
- solaris
tasks: *topology_tests
##### Compiler and distro sanitychecks
- name: compile-clang35
display_name: "Debian 8.1 (clang 3.5)"
expansions:
CFLAGS: "-m64 -march=x86-64"
CC: clang
<<: *configure_flags_no_experimental
run_on:
- debian81-build
tasks: *compile_unix_variants
- name: compile-clang37
display_name: "Archlinux (clang 3.7)"
expansions:
CFLAGS: "-m64 -march=x86-64"
CC: clang
<<: *configure_flags_no_experimental
run_on:
- archlinux-build
tasks: *compile_unix_variants
- name: compile-clang38
display_name: "Ubuntu 16.04 (clang 3.8)"
expansions:
CFLAGS: "-m64 -march=x86-64"
CC: clang
<<: *configure_flags_no_experimental
run_on:
- ubuntu1604-build
tasks: *compile_unix_variants
- name: compile-gcc48
display_name: "RHEL 7.0 (GCC 4.8)"
expansions:
CFLAGS: "-m64 -march=x86-64 -Werror"
<<: *configure_flags_no_experimental
run_on:
- rhel70
tasks: *compile_unix_variants
- name: compile-gcc49
display_name: "Debian 8.1 (GCC 4.9)"
expansions:
CFLAGS: "-m64 -march=x86-64 -Werror"
<<: *configure_flags_no_experimental
run_on:
- debian81-build
tasks: *compile_unix_variants
- name: compile-gcc53
display_name: "Ubuntu 16.04 (GCC 5.3)"
expansions:
CFLAGS: "-m64 -march=x86-64 -Werror"
<<: *configure_flags_no_experimental
run_on:
- ubuntu1604-build
tasks: *compile_unix_variants
- name: compile-archlinux
display_name: "Archlinux (GCC)"
expansions:
CFLAGS: "-m64 -march=x86-64 -Werror"
<<: *configure_flags_no_experimental
run_on:
- archlinux-build
tasks: *compile_unix_variants
- name: compile-rhel70
display_name: "RHEL 7.0 (GCC)"
expansions:
CFLAGS: "-m64 -march=x86-64 -Werror"
<<: *configure_flags_no_experimental
run_on:
- rhel70
tasks: *compile_unix_variants
- name: compile-ubuntu1204
display_name: "Ubuntu 12.04 (GCC)"
expansions:
CFLAGS: "-m64 -march=x86-64 -Werror"
<<: *configure_flags_no_experimental
run_on:
- ubuntu1204-build
tasks: *compile_most_unix_variants
- name: compile-ubuntu1404
display_name: "Ubuntu 14.04 (GCC)"
expansions:
CFLAGS: "-m64 -march=x86-64 -Werror"
<<: *configure_flags_no_experimental
run_on:
- ubuntu1404-build
tasks: *compile_unix_variants
- name: compile-ubuntu1404-no-experimental
display_name: "Ubuntu 14.04 No-Experimental"
expansions:
CFLAGS: "-m64 -march=x86-64 -Werror"
<<: *configure_flags_no_experimental
run_on:
- ubuntu1404-build
tasks: *compile_most_unix_variants
|