Skip to content

Commit 6c2fb5b

Browse files
committed
feat: configurable prefix flag for cc-test-reporter
1 parent 4b1b7cc commit 6c2fb5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/ci/codeclimate_upload.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ curl -Ls https://codeclimate.com/downloads/test-reporter/test-reporter-latest-li
55
chmod +x ./cc-test-reporter
66
./cc-test-reporter --version
77

8+
COVERAGE_PREFIX=${COVERAGE_PREFIX:-github.com/flant/shell-operator}
9+
810
coverage_files=$(find $COVERAGE_DIR -name '*.out')
911
for file in ${coverage_files[@]}
1012
do
@@ -13,7 +15,7 @@ do
1315
./cc-test-reporter format-coverage \
1416
-t=gocov \
1517
-o="cc-coverage/$file_name.codeclimate.json" \
16-
-p=github.com/flant/shell-operator \
18+
-p=${COVERAGE_PREFIX} \
1719
"$file"
1820
done
1921

0 commit comments

Comments
 (0)