Skip to content

Commit fc5b166

Browse files
committed
Upload test result report to codecov.io from Evergreen
1 parent ad6442c commit fc5b166

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.evergreen/config/functions.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,21 @@ functions:
126126
- command: attach.results
127127
params:
128128
file_location: "${DRIVERS_TOOLS}/results.json"
129+
- command: shell.exec
130+
params:
131+
working_dir: src
132+
script: |
133+
${PREPARE_SHELL}
134+
curl -Os https://cli.codecov.io/latest/linux/codecov
135+
sudo chmod +x codecov
136+
[[ -f test-results.xml ]] && \
137+
./codecov upload-process \
138+
--report-type test_results \
139+
--disable-search \
140+
--fail-on-error \
141+
--token ${CODECOV_TOKEN} \
142+
--file test-results.xml || \
143+
echo "Skipping codecov test result upload due to error"
129144
130145
"bootstrap mongo-orchestration":
131146
- command: shell.exec

0 commit comments

Comments
 (0)