File tree 3 files changed +10
-11
lines changed
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 25
25
mkdir "${TARGET}"
26
26
case "${TARGET}" in
27
27
linux-amd64-coverage)
28
- GOARCH=amd64 ./scripts/codecov_upload.sh
28
+ GOARCH=amd64 make upload-coverage-report
29
29
;;
30
30
*)
31
31
echo "Failed to find target"
Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ test-e2e-release: build
58
58
test-robustness :
59
59
PASSES=" robustness" ./scripts/test.sh $(GO_TEST_FLAGS )
60
60
61
+ .PHONY : test-coverage
62
+ test-coverage :
63
+ COVERDIR=covdir PASSES=" build cov" ./scripts/test.sh $(GO_TEST_FLAGS )
64
+
65
+ .PHONY : upload-coverage-report
66
+ upload-coverage-report : test-coverage
67
+ ./scripts/codecov_upload.sh
68
+
61
69
.PHONY : fuzz
62
70
fuzz :
63
71
./scripts/fuzzing.sh
Original file line number Diff line number Diff line change 5
5
6
6
set -o pipefail
7
7
8
- LOG_FILE=${1:- test-coverage.log}
9
-
10
- # We collect the coverage
11
- COVERDIR=covdir PASSES=' build cov' ./scripts/test.sh 2>&1 | tee " ${LOG_FILE} "
12
- test_success=" $? "
13
-
14
8
# We try to upload whatever we have:
15
- bash <( curl -s https://codecov.io/bash) -f ./covdir/all.coverprofile -cF all || exit 2
16
-
17
- # Expose the original status of the test coverage execution.
18
- exit ${test_success}
9
+ bash <( curl -s https://codecov.io/bash) -f ./covdir/all.coverprofile -cF all
You can’t perform that action at this time.
0 commit comments