@@ -131,19 +131,21 @@ functions:
131
131
working_dir : src
132
132
script : |
133
133
${PREPARE_SHELL}
134
- curl -Os https://cli.codecov.io/latest/linux/codecov
135
- curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM
136
- shasum -a 256 -c codecov.SHA256SUM
137
- sudo chmod +x codecov
138
- [[ -f test-results.xml ]] && \
134
+ if [ -f test-results.xml ]; then
135
+ curl -Os https://cli.codecov.io/latest/linux/codecov
136
+ curl -Os https://cli.codecov.io/latest/linux/ codecov.SHA256SUM
137
+ shasum -a 256 -c codecov.SHA256SUM
138
+ sudo chmod +x codecov
139
139
./codecov upload-process \
140
140
--report-type test_results \
141
141
--disable-search \
142
142
--fail-on-error \
143
143
--token ${CODECOV_TOKEN} \
144
144
--flag "${MONGODB_VERSION}-${TOPOLOGY}" \
145
- --file test-results.xml || \
146
- echo "Skipping codecov test result upload due to error"
145
+ --file test-results.xml
146
+ else
147
+ echo "Skipping codecov test result upload"
148
+ fi
147
149
148
150
" bootstrap mongo-orchestration " :
149
151
- command : shell.exec
@@ -167,7 +169,6 @@ functions:
167
169
printf "\n" >> mo-expansion.yml
168
170
printf "MONGODB_VERSION: '%s'\n" "${MONGODB_VERSION}" >> mo-expansion.yml
169
171
printf "TOPOLOGY: '%s'\n" "${TOPOLOGY}" >> mo-expansion.yml
170
- cat mo-expansion.yml
171
172
# run-orchestration generates expansion file with MONGODB_URI and CRYPT_SHARED_LIB_PATH
172
173
- command : expansions.update
173
174
params :
0 commit comments