@@ -44,6 +44,7 @@ functions:
4444
4545 bootstrap-mongo-orchestration :
4646 - command : subprocess.exec
47+ type : test
4748 params :
4849 binary : bash
4950 include_expansions_in_env :
@@ -54,6 +55,7 @@ functions:
5455 - ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
5556 # run-orchestration generates expansion file with the MONGODB_URI for the cluster
5657 - command : expansions.update
58+ type : test
5759 params :
5860 file : mo-expansion.yml
5961
@@ -93,11 +95,11 @@ post:
9395# ######################################
9496tasks :
9597 - name : static-analysis
96- type : test
9798 tags :
9899 - pr
99100 commands :
100101 - command : subprocess.exec
102+ type : test
101103 params :
102104 working_dir : src
103105 binary : bash
@@ -107,11 +109,11 @@ tasks:
107109 - static-checks.sh
108110
109111 - name : run-unit-tests
110- type : test
111112 tags :
112113 - pr
113114 commands :
114115 - command : subprocess.exec
116+ type : test
115117 params :
116118 working_dir : src
117119 binary : bash
@@ -121,12 +123,12 @@ tasks:
121123 - run-unit-tests.sh
122124
123125 - name : run-integration-tests
124- type : test
125126 tags :
126127 - pr
127128 commands :
128129 - func : bootstrap-mongo-orchestration
129130 - command : subprocess.exec
131+ type : test
130132 params :
131133 working_dir : src
132134 binary : bash
@@ -135,6 +137,44 @@ tasks:
135137 args :
136138 - run-integration-tests.sh
137139
140+ - name : publish-snapshot
141+ depends_on :
142+ - variant : static-checks
143+ name : static-analysis
144+ commands :
145+ - command : subprocess.exec
146+ params :
147+ working_dir : src
148+ binary : bash
149+ add_to_path :
150+ - .evergreen
151+ env :
152+ NEXUS_USERNAME : ${nexus_username}
153+ NEXUS_PASSWORD : ${nexus_password}
154+ SIGNING_PASSWORD : ${signing_password}
155+ SIGNING_KEY : ${signing_key}
156+ RELEASE : " false"
157+ args :
158+ - .evergreen/publish.sh
159+
160+ - name : publish-release
161+ git_tag_only : true
162+ commands :
163+ - command : subprocess.exec
164+ params :
165+ working_dir : src
166+ binary : bash
167+ add_to_path :
168+ - .evergreen
169+ env :
170+ NEXUS_USERNAME : ${nexus_username}
171+ NEXUS_PASSWORD : ${nexus_password}
172+ SIGNING_PASSWORD : ${signing_password}
173+ SIGNING_KEY : ${signing_key}
174+ RELEASE : " true"
175+ args :
176+ - .evergreen/publish.sh
177+
138178# #######################################
139179# Axes #
140180# #######################################
@@ -199,3 +239,15 @@ buildvariants:
199239 - pr
200240 tasks :
201241 - name : run-integration-tests
242+
243+ - name : publish-snapshot
244+ display_name : " Publish Snapshot"
245+ run_on : rhel80-small
246+ tasks :
247+ - name : publish-snapshot
248+
249+ - name : publish-release
250+ display_name : " Publish Release"
251+ run_on : rhel80-small
252+ tasks :
253+ - name : publish-release
0 commit comments