Skip to content

Commit

Permalink
fix: small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Oct 2, 2024
1 parent d700629 commit 0cb5ab3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ say "$g ->$x Downloading $b${codecov_url}$x"
curl -Os $codecov_url

say "$g==>$x Finishing downloading $b${codecov_os}:${CODECOV_VERSION}$x"
say ""
say " "
31 changes: 18 additions & 13 deletions upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,43 @@ chmod +x $codecov_filename

token="$(eval echo $CODECOV_TOKEN)"
say "$g ->$x Token of length ${#token} detected"
token_arg=""
if [ -n $token ];
then
token_arg+=" -t $token "
fi

#create commit
say "$g==>$x Running create-commit"
say " $b./$codecov_filename$codecov_cli_args create-commit$codecov_create_commit_args$x"
say " $b./$codecov_filename$codecov_cli_args create-commit$codecov_create_commit_args$x"

./$codecov_filename \
$codecov_cli_args \
create-commit \
-t $token \
$token_arg \
$codecov_create_commit_args

say
say " "

#create report
say "./\"$codecov_filename\" $codecov_cli_args create-report -t <redacted>"
say "$g==>$x Running create-report"
say " $b./$codecov_filename$codecov_cli_args create-commit$codecov_create_report_args$x"

./$codecov_filename \
$codecov_cli_args \
create-report \
-t "$(eval echo $CODECOV_TOKEN)" \
${CODECOV_REPORT_ARGS}
$token_arg \
$codecov_create_report_args

say " "

#upload reports
# alpine doesn't allow for indirect expansion

say "./${codecov_filename} $codecov_cli_args do-upload -Z -t <redacted> ${CODECOV_UPLOAD_ARGS} ${@}"
say "$g==>$x Running do-upload"
say " $b./$codecov_filename$codecov_cli_args do-upload$codecov_do_upload_args$x"

./$codecov_filename \
$codecov_cli_args \
do-upload \
-Z \
-t "$(eval echo $CODECOV_TOKEN)" \
${FLAGS} \
${CODECOV_UPLOAD_ARGS} \
${@}
$token_arg \
$codecov_do_upload_args
3 changes: 2 additions & 1 deletion validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ sha_url="${sha_url}/${codecov_version}/${codecov_os}"
sha_url="${sha_url}/${codecov_filename}.SHA256SUM"
say "$g ->$x Downloading $b${sha_url}$x"
say "$g ->$x Downloading $b${sha_url}.sig$x"
say ""
say " "

curl -Os "$sha_url"
curl -Os "${sha_url}.sig"

Expand Down

0 comments on commit 0cb5ab3

Please sign in to comment.