Skip to content

Commit 051e733

Browse files
committed
download_and_merge_coverage
1 parent 94db687 commit 051e733

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.evergreen/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ functions:
8080
- command: ec2.assume_role
8181
params:
8282
role_arn: ${assume_role_arn}
83-
- command: shell.exec
83+
- command: subprocess.exec
8484
params:
85+
binary: bash
8586
silent: true
8687
working_dir: "src"
8788
include_expansions_in_env: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN"]
88-
script: |
89-
# Download all the task coverage files.
90-
aws s3 cp --recursive s3://${bucket_name}/coverage/${revision}/${version_id}/coverage/ coverage/
89+
args:
90+
- src/.evergreen/scripts/download_and_merge_coverage.sh ${bucket_name} ${revision} ${version_id}
9191
- command: subprocess.exec
9292
params:
9393
working_dir: "src"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set +x
4+
. src/.evergreen/scripts/env.sh
5+
# Download all the task coverage files.
6+
aws s3 cp --recursive s3://"$1"/coverage/"$2"/"$3"/coverage/ coverage/

0 commit comments

Comments
 (0)