Skip to content

Commit abc707d

Browse files
Merge pull request #55 from codecov/joseph
feat: make CLI url configurable
2 parents 306a77a + 9f3c87a commit abc707d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

dist/codecov.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ else
8686
[[ $CC_OS == "macos" ]] && \
8787
! command -v gpg 2>&1 >/dev/null && \
8888
HOMEBREW_NO_AUTO_UPDATE=1 brew install gpg
89-
c_url="https://cli.codecov.io"
89+
c_url="${CC_CLI_URL:-https://cli.codecov.io}"
9090
c_url="$c_url/${CC_VERSION}"
9191
c_url="$c_url/${CC_OS}/${c_filename}"
9292
say "$g ->$x Downloading $b${c_url}$x"

env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CC_BINARY_LOCATION
66
CC_BRANCH
77
CC_BUILD
88
CC_BUILD_URL
9+
CC_CLI_URL
910
CC_CODE
1011
CC_DIR
1112
CC_DISABLE_FILE_FIXES

scripts/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
[[ $CODECOV_OS == "macos" ]] && \
3939
! command -v gpg 2>&1 >/dev/null && \
4040
HOMEBREW_NO_AUTO_UPDATE=1 brew install gpg
41-
codecov_url="https://cli.codecov.io"
41+
codecov_url="${CODECOV_CLI_URL:-https://cli.codecov.io}"
4242
codecov_url="$codecov_url/${CODECOV_VERSION}"
4343
codecov_url="$codecov_url/${CODECOV_OS}/${codecov_filename}"
4444
say "$g ->$x Downloading $b${codecov_url}$x"

0 commit comments

Comments
 (0)