Skip to content

Commit 58594e9

Browse files
authored
chore(ci): upload coverage tarball for CI runs (#549)
Just realized that this is fairly easy to do, and this might be helpful for us in figuring out where we could improve test coverage.
1 parent 583947a commit 58594e9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.evergreen.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,22 @@ functions:
143143
shell: bash
144144
script: |
145145
set -e
146+
{
146147
export NODE_JS_VERSION=${node_js_version}
147148
source .evergreen/.setup_env
148149
npm run test-ci
150+
echo "Creating coverage tarball..."
151+
tar cvzf coverage.tgz coverage
152+
}
153+
- command: s3.put
154+
params:
155+
aws_key: ${aws_key}
156+
aws_secret: ${aws_secret}
157+
local_file: src/coverage.tgz
158+
remote_file: mongosh/binaries/${revision}/${revision_order_id}/coverage-${build_variant}.tgz
159+
bucket: mciuploads
160+
permissions: public-read
161+
content_type: application/x-gzip
149162
test_vscode:
150163
- command: shell.exec
151164
params:

0 commit comments

Comments
 (0)