@@ -756,6 +756,13 @@ functions:
756
756
-v \
757
757
--fault revoked
758
758
759
+ " teardown_docker " :
760
+ - command : shell.exec
761
+ params :
762
+ script : |
763
+ # Remove all Docker images
764
+ docker rmi -f $(docker images -a -q) &> /dev/null || true
765
+
759
766
pre :
760
767
- func : " fetch source"
761
768
- func : " prepare resources"
@@ -773,6 +780,7 @@ post:
773
780
- func : " upload test results"
774
781
- func : " stop mongo-orchestration"
775
782
- func : " cleanup"
783
+ - func : " teardown_docker"
776
784
777
785
tasks :
778
786
@@ -806,6 +814,36 @@ tasks:
806
814
genhtml --version || true
807
815
valgrind --version || true
808
816
817
+
818
+ - name : " release"
819
+ tags : ["release"]
820
+ git_tag_only : true
821
+ commands :
822
+ - command : shell.exec
823
+ type : test
824
+ params :
825
+ working_dir : " src"
826
+ script : |
827
+ set -o xtrace
828
+ ${PREPARE_SHELL}
829
+ .evergreen/release.sh
830
+ - command : archive.targz_pack
831
+ params :
832
+ target : " release-files.tgz"
833
+ source_dir : " src/dist"
834
+ include :
835
+ - " *"
836
+ - command : s3.put
837
+ params :
838
+ aws_key : ${aws_key}
839
+ aws_secret : ${aws_secret}
840
+ local_file : release-files.tgz
841
+ remote_file : ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/release/${task_id}-${execution}-release-files.tar.gz
842
+ bucket : mciuploads
843
+ permissions : public-read
844
+ content_type : ${content_type|application/gzip}
845
+ display_name : Release files
846
+
809
847
# Standard test tasks {{{
810
848
811
849
- name : " mockupdb"
@@ -2065,8 +2103,6 @@ buildvariants:
2065
2103
- " .latest"
2066
2104
- " .4.4"
2067
2105
- " .4.2"
2068
- variables :
2069
- set_xtrace_on : on
2070
2106
2071
2107
- matrix_name : " tests-python-version-rhel62-test-ssl"
2072
2108
matrix_spec :
@@ -2519,6 +2555,13 @@ buildvariants:
2519
2555
- name : " aws-auth-test-4.4"
2520
2556
- name : " aws-auth-test-latest"
2521
2557
2558
+ - matrix_name : " Release"
2559
+ matrix_spec :
2560
+ platform : [ubuntu-18.04, windows-64-vsMulti-small]
2561
+ display_name : " Release ${platform}"
2562
+ tasks :
2563
+ - name : " release"
2564
+
2522
2565
# Platform notes
2523
2566
# i386 builds of OpenSSL or Cyrus SASL are not available
2524
2567
# Ubuntu16.04 ppc64le is only supported by MongoDB 3.4+
0 commit comments