Make coverage uploads more readable

- Tag by CI name
- Use verbose output
- Fail CI on failed upload
This commit is contained in:
Alexander Grund
2021-11-30 20:20:53 +01:00
parent 8ff4e49651
commit 4deebf5e15
4 changed files with 4 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ common_install
echo '==================================> SCRIPT'
cd $BOOST_ROOT/libs/$SELF
ci/travis/codecov.sh
CODECOV_NAME="Drone CI" ci/travis/codecov.sh
elif [ "$DRONE_JOB_BUILDTYPE" == "valgrind" ]; then

View File

@@ -26,6 +26,7 @@ env:
B2_VARIANT: debug,release
B2_LINK: shared,static
LCOV_BRANCH_COVERAGE: 0
CODECOV_NAME: Github Actions
jobs:
posix:

View File

@@ -41,6 +41,7 @@ branches:
env:
global:
- B2_CI_VERSION=1
- CODECOV_NAME=Travis
# see: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties
# - B2_ADDRESS_MODEL=64,32
# - B2_LINK=shared,static

View File

@@ -70,7 +70,7 @@ elif [[ "$1" == "upload" ]]; then
#
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -f coverage.info
./codecov -f coverage.info --verbose --nonZero ${CODECOV_NAME:+--name "$CODECOV_NAME"}
else
echo "Invalid parameter for codecov.sh: '$1'." >&2
false