Skip to content

Commit

Permalink
Report error logs from codecov upload fail
Browse files Browse the repository at this point in the history
Failed codecov.io uploads now report the stderr output.

This will allow us to start diagnosing the intermittent failures and,
possibly, find a solution.
  • Loading branch information
marshallward committed Aug 12, 2022
1 parent 1f1b8ad commit 764b679
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .testing/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ report.cov: run.cov codecov
2> build/cov/codecov.err \
&& echo -e "${MAGENTA}Report uploaded to codecov.${RESET}" \
|| { \
cat build/cov/codecov.err ; \
echo -e "${RED}Failed to upload report.${RESET}" ; \
if [ "$(REQUIRE_COVERAGE_UPLOAD)" = true ] ; then false ; fi ; \
}
Expand Down Expand Up @@ -740,6 +741,7 @@ report.cov.unit: build/unit/MOM_file_parser_tests.F90.gcov codecov
2> build/unit/codecov.err \
&& echo -e "${MAGENTA}Report uploaded to codecov.${RESET}" \
|| { \
cat build/unit/codecov.err ; \
echo -e "${RED}Failed to upload report.${RESET}" ; \
if [ "$(REQUIRE_COVERAGE_UPLOAD)" = true ] ; then false ; fi ; \
}
Expand Down

0 comments on commit 764b679

Please sign in to comment.