@@ -358,6 +358,24 @@ functions:
358
358
cat .evergreen/kerberos.realm | $SUDO tee -a /etc/krb5.conf
359
359
fi
360
360
361
+ " link sample program" :
362
+ - command : shell.exec
363
+ type : test
364
+ params :
365
+ working_dir : " mongoc"
366
+ script : |
367
+ set -o errexit
368
+ # Build libmongoc with the Autotools or CMake and compile a program
369
+ # that links dynamically or statically to libmongoc, using
370
+ # variables from CMake's find_package command.
371
+ export BUILD_SAMPLE_WITH_CMAKE=${BUILD_SAMPLE_WITH_CMAKE}
372
+ export ENABLE_SSL=${ENABLE_SSL}
373
+ BUILD_MONGOC_WITH_CMAKE= LINK_STATIC= sh .evergreen/link-sample-program.sh
374
+ BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC= sh .evergreen/link-sample-program.sh
375
+ BUILD_MONGOC_WITH_CMAKE= LINK_STATIC=1 sh .evergreen/link-sample-program.sh
376
+ BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC=1 sh .evergreen/link-sample-program.sh
377
+
378
+
361
379
pre :
362
380
- func : " fetch source"
363
381
- func : " windows fix"
@@ -742,21 +760,21 @@ tasks:
742
760
- func : " bootstrap mongo-orchestration"
743
761
vars :
744
762
VERSION : " 3.4"
745
- - command : shell.exec
746
- type : test
747
- params :
748
- working_dir : " mongoc "
749
- script : |
750
- set -o errexit
751
- # Build libmongoc with the Autotools or CMake and compile a program
752
- # that links dynamically or statically to libmongoc, using
753
- # variables from CMake's find_package command.
754
- export BUILD_SAMPLE_WITH_CMAKE=1
755
- export ENABLE_SSL=
756
- BUILD_MONGOC_WITH_CMAKE= LINK_STATIC= sh .evergreen/link-sample-program.sh
757
- BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC= sh .evergreen/ link- sample- program.sh
758
- BUILD_MONGOC_WITH_CMAKE= LINK_STATIC=1 sh .evergreen/link-sample-program.sh
759
- BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC=1 sh .evergreen/link-sample-program.sh
763
+ - func : " link sample program "
764
+ vars :
765
+ BUILD_SAMPLE_WITH_CMAKE : " 1 "
766
+
767
+ - name : link-with-cmake-mac
768
+ depends_on :
769
+ - name : " make-release-archive "
770
+ variant : releng
771
+ commands :
772
+ - func : " bootstrap mongo-orchestration "
773
+ vars :
774
+ VERSION : " 3.4 "
775
+ - func : " link sample program"
776
+ vars :
777
+ BUILD_SAMPLE_WITH_CMAKE : " 1 "
760
778
761
779
- name : link-with-cmake-ssl
762
780
depends_on :
@@ -766,21 +784,10 @@ tasks:
766
784
- func : " bootstrap mongo-orchestration"
767
785
vars :
768
786
VERSION : " 3.4"
769
- - command : shell.exec
770
- type : test
771
- params :
772
- working_dir : " mongoc"
773
- script : |
774
- set -o errexit
775
- # Build libmongoc with the Autotools or CMake and compile a program
776
- # that links dynamically or statically to libmongoc, using
777
- # variables from CMake's find_package command.
778
- export BUILD_SAMPLE_WITH_CMAKE=1
779
- export ENABLE_SSL=1
780
- BUILD_MONGOC_WITH_CMAKE= LINK_STATIC= sh .evergreen/link-sample-program.sh
781
- BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC= sh .evergreen/link-sample-program.sh
782
- BUILD_MONGOC_WITH_CMAKE= LINK_STATIC=1 sh .evergreen/link-sample-program.sh
783
- BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC=1 sh .evergreen/link-sample-program.sh
787
+ - func : " link sample program"
788
+ vars :
789
+ BUILD_SAMPLE_WITH_CMAKE : " 1"
790
+ ENABLE_SSL : " 1"
784
791
785
792
- name : link-with-cmake-windows
786
793
depends_on :
@@ -850,21 +857,17 @@ tasks:
850
857
- func : " bootstrap mongo-orchestration"
851
858
vars :
852
859
VERSION : " 3.4"
853
- - command : shell.exec
854
- type : test
855
- params :
856
- working_dir : " mongoc"
857
- script : |
858
- set -o errexit
859
- # Build libmongoc with the Autotools or CMake and compile a program
860
- # that links dynamically or statically to libmongoc, using
861
- # variables from "pkg-config".
862
- export BUILD_SAMPLE_WITH_CMAKE=
863
- export ENABLE_SSL=
864
- BUILD_MONGOC_WITH_CMAKE= LINK_STATIC= sh .evergreen/link-sample-program.sh
865
- BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC= sh .evergreen/link-sample-program.sh
866
- BUILD_MONGOC_WITH_CMAKE= LINK_STATIC=1 sh .evergreen/link-sample-program.sh
867
- BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC=1 sh .evergreen/link-sample-program.sh
860
+ - func : " link sample program"
861
+
862
+ - name : link-with-pkg-config-mac
863
+ depends_on :
864
+ - name : " make-release-archive"
865
+ variant : releng
866
+ commands :
867
+ - func : " bootstrap mongo-orchestration"
868
+ vars :
869
+ VERSION : " 3.4"
870
+ - func : " link sample program"
868
871
869
872
- name : link-with-pkg-config-ssl
870
873
depends_on :
@@ -874,21 +877,9 @@ tasks:
874
877
- func : " bootstrap mongo-orchestration"
875
878
vars :
876
879
VERSION : " 3.4"
877
- - command : shell.exec
878
- type : test
879
- params :
880
- working_dir : " mongoc"
881
- script : |
882
- set -o errexit
883
- # Build libmongoc with the Autotools or CMake and compile a program
884
- # that links dynamically or statically to libmongoc, using
885
- # variables from "pkg-config".
886
- export BUILD_SAMPLE_WITH_CMAKE=
887
- export ENABLE_SSL=1
888
- BUILD_MONGOC_WITH_CMAKE= LINK_STATIC= sh .evergreen/link-sample-program.sh
889
- BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC= sh .evergreen/link-sample-program.sh
890
- BUILD_MONGOC_WITH_CMAKE= LINK_STATIC=1 sh .evergreen/link-sample-program.sh
891
- BUILD_MONGOC_WITH_CMAKE=1 LINK_STATIC=1 sh .evergreen/link-sample-program.sh
880
+ - func : " link sample program"
881
+ vars :
882
+ ENABLE_SSL : " 1"
892
883
893
884
- name : debug-compile-nosasl-nossl
894
885
tags : ["debug-compile", "nosasl", "nossl"]
@@ -6570,6 +6561,9 @@ buildvariants:
6570
6561
- ubuntu1604-test
6571
6562
- ubuntu1404-build
6572
6563
- ubuntu1404-test
6564
+ - name : " link-with-cmake-mac"
6565
+ distros :
6566
+ - macos-1012
6573
6567
- name : " link-with-cmake-windows"
6574
6568
distros :
6575
6569
- windows-64-vs2015-compile
@@ -6587,6 +6581,9 @@ buildvariants:
6587
6581
- ubuntu1604-test
6588
6582
- ubuntu1404-build
6589
6583
- ubuntu1404-test
6584
+ - name : " link-with-pkg-config-mac"
6585
+ distros :
6586
+ - macos-1012
6590
6587
6591
6588
6592
6589
- name : clang34ubuntu
0 commit comments