Skip to content

Commit dc45df0

Browse files
authored
Merge pull request #19424 from ivanvc/remove-codecov-github-workflow
github/workflows: remove coverage workflow
2 parents fb53c4a + 4ce48ce commit dc45df0

File tree

3 files changed

+13
-38
lines changed

3 files changed

+13
-38
lines changed

.github/workflows/coverage.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test-coverage:
6666

6767
.PHONY: upload-coverage-report
6868
upload-coverage-report: test-coverage
69-
./scripts/codecov_upload.sh
69+
COVERDIR=covdir ./scripts/codecov_upload.sh
7070

7171
.PHONY: fuzz
7272
fuzz:

scripts/codecov_upload.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
#!/usr/bin/env bash
22

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

65
set -o pipefail
76

87
# We try to upload whatever we have:
9-
bash <(curl -s https://codecov.io/bash) -f ./covdir/all.coverprofile -cF all
8+
mkdir -p bin
9+
curl -sf -o ./bin/codecov.sh https://codecov.io/bash
10+
11+
bash ./bin/codecov.sh -f "${COVERDIR}/all.coverprofile" \
12+
-cF all \
13+
-C "${PULL_PULL_SHA}" \
14+
-r "${REPO_OWNER}/${REPO_NAME}" \
15+
-P "${PULL_NUMBER}" \
16+
-b "${BUILD_ID}" \
17+
-B "${PULL_BASE_REF}" \
18+
-N "${PULL_BASE_SHA}"

0 commit comments

Comments
 (0)