https://github.com/etcd-io/etcd
Raw File
Tip revision: 215b53cf3b48ee761f4c40908b3874b2e5e95e9f authored by Marek Siarkowicz on 20 January 2023, 10:15:12 UTC
version: bump up to 3.5.7
Tip revision: 215b53c
codecov_upload.sh
#!/usr/bin/env bash

# Script used to collect and upload test coverage (mostly by travis).
# Usage ./test_coverage_upload.sh [log_file]

set -o pipefail

LOG_FILE=${1:-test-coverage.log}

# We collect the coverage
COVERDIR=covdir PASSES='build build_cov cov' ./test.sh 2>&1 | tee "${LOG_FILE}"
test_success="$?"

# We try to upload whatever we have:
bash <(curl -s https://codecov.io/bash) -f ./covdir/all.coverprofile -cF all || exit 2

# Expose the original status of the test coverage execution.
exit ${test_success}
back to top