Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions ci/coverage_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ if [ "${CIRCLECI}" != "true" ]; then
exit 0
fi

[[ -z "${ENVOY_BUILD_DIR}" ]] && ENVOY_BUILD_DIR=/build
COVERAGE_FILE="${ENVOY_BUILD_DIR}/envoy/generated/coverage/index.html"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update link in line 32 too? feel free to close #7608.


if [ ! -f "${COVERAGE_FILE}" ]; then
echo "ERROR: Coverage file not found."
exit 1
fi

echo "Found coverage report: ${COVERAGE_FILE}"

# available for master builds
if [ -z "$CIRCLE_PR_NUMBER" ]
then
echo "Uploading coverage report..."

[[ -z "${ENVOY_BUILD_DIR}" ]] && ENVOY_BUILD_DIR=/build
COVERAGE_FILE="${ENVOY_BUILD_DIR}/envoy/generated/coverage/coverage.html"

if [ ! -f "${COVERAGE_FILE}" ]; then
echo "ERROR: Coverage file not found."
exit 1
fi

BRANCH_NAME="${CIRCLE_BRANCH}"
COVERAGE_DIR="$(dirname "${COVERAGE_FILE}")"
S3_LOCATION="lyft-envoy/coverage/report-${BRANCH_NAME}"
Expand Down