-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f256505
commit 39db555
Showing
6 changed files
with
109 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/usr/bin/env bash | ||
|
||
codecov_uc_args=() | ||
|
||
# Args for create commit | ||
codecov_uc_args+=( $(write_truthy_args CODECOV_FAIL_ON_ERROR) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_GIT_SERVICE) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_PARENT_SHA) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_PR) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_SHA) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_SLUG) ) | ||
|
||
# Args for create report | ||
codecov_uc_args+=( $(write_existing_args CODECOV_CODE) ) | ||
|
||
# Args for do upload | ||
codecov_uc_args+=( $(write_existing_args CODECOV_ENV) ) | ||
|
||
OLDIFS=$IFS;IFS=, | ||
|
||
codecov_uc_args+=( $(write_existing_args CODECOV_BRANCH) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_BUILD) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_BUILD_URL) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_DIR) ) | ||
codecov_uc_args+=( $(write_truthy_args CODECOV_DISABLE_FILE_FIXES) ) | ||
codecov_uc_args+=( $(write_truthy_args CODECOV_DISABLE_SEARCH) ) | ||
codecov_uc_args+=( $(write_truthy_args CODECOV_DRY_RUN) ) | ||
|
||
if [ -n "$CODECOV_EXCLUDES" ]; | ||
then | ||
for directory in $CODECOV_EXCLUDES; do | ||
codecov_uc_args+=( " --exclude " "$directory" ) | ||
done | ||
fi | ||
|
||
if [ -n "$CODECOV_FILES" ]; | ||
then | ||
for file in $CODECOV_FILES; do | ||
codecov_uc_args+=( " --file " "$file" ) | ||
done | ||
fi | ||
|
||
if [ -n "$CODECOV_FLAGS" ]; | ||
then | ||
for flag in $CODECOV_FLAGS; do | ||
codecov_uc_args+=( " --flag " "$flag" ) | ||
done | ||
fi | ||
|
||
codecov_uc_args+=( $(write_existing_args CODECOV_GCOV_ARGS) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_GCOV_EXECUTABLE) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_GCOV_IGNORE) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_GCOV_INCLUDE) ) | ||
codecov_uc_args+=( $(write_truthy_args CODECOV_HANDLE_NO_REPORTS_FOUND) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_JOB_CODE) ) | ||
codecov_uc_args+=( $(write_truthy_args CODECOV_LEGACY) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_NAME) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_NETWORK_FILTER) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_NETWORK_PREFIX) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_NETWORK_ROOT_FOLDER) ) | ||
|
||
if [ -n "$CODECOV_PLUGINS" ]; | ||
then | ||
for plugin in $CODECOV_PLUGINS; do | ||
codecov_uc_args+=( " --plugin " "$plugin" ) | ||
done | ||
fi | ||
|
||
codecov_uc_args+=( $(write_existing_args CODECOV_REPORT_TYPE) ) | ||
codecov_uc_args+=( $(write_existing_args CODECOV_SWIFT_PROJECT) ) | ||
|
||
IFS=$OLDIFS |