Avoid sending empty reports to codecov (#12293)

Before this commit we were sending reports also for unit tests that
were not collecting coverage data.
This commit is contained in:
Massimiliano Culpo 2019-08-06 19:35:23 +02:00 committed by Greg Becker
parent cb7e9c155e
commit ae975c48ac

View File

@ -200,9 +200,11 @@ after_success:
- ccache -s
- case "$TEST_SUITE" in
unit)
codecov --env PYTHON_VERSION
--required
--flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
if [[ "$COVERAGE" == "true" ]]; then
codecov --env PYTHON_VERSION
--required
--flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
fi
;;
esac