Skip to content

Commit 0957e9f

Browse files
Merge pull request #13 from codecov/th/add-gcov-and-swift-params
fix: add gcov and xcode params
2 parents 9a9fbc3 + 23cbb91 commit 0957e9f

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

dist/codecov.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ then
152152
cc_du_args+=( " --flag " "$flag" )
153153
done
154154
fi
155+
cc_du_args+=( $(write_existing_args CC_GCOV_ARGS) )
156+
cc_du_args+=( $(write_existing_args CC_GCOV_EXECUTABLE) )
157+
cc_du_args+=( $(write_existing_args CC_GCOV_IGNORE) )
158+
cc_du_args+=( $(write_existing_args CC_GCOV_INCLUDE) )
155159
cc_du_args+=( $(write_existing_args CC_GIT_SERVICE) )
156160
cc_du_args+=( $(write_truthy_args CC_HANDLE_NO_REPORTS_FOUND) )
157161
cc_du_args+=( $(write_existing_args CC_JOB_CODE) )
@@ -170,6 +174,7 @@ cc_du_args+=( $(write_existing_args CC_PR) )
170174
cc_du_args+=( $(write_existing_args CC_REPORT_TYPE) )
171175
cc_du_args+=( $(write_existing_args CC_SHA) )
172176
cc_du_args+=( $(write_existing_args CC_SLUG) )
177+
cc_du_args+=( $(write_existing_args CC_SWIFT_PROJECT) )
173178
IFS=$OLDIFS
174179
unset NODE_OPTIONS
175180
# See https://github.com/codecov/uploader/issues/475

env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ CC_EXCLUDES
1515
CC_FAIL_ON_ERROR
1616
CC_FILES
1717
CC_FLAGS
18+
CC_GCOV_ARGS
19+
CC_GCOV_EXECUTABLE
20+
CC_GCOV_IGNORE
21+
CC_GCOV_INCLUDE
1822
CC_GIT_SERVICE
1923
CC_HANDLE_NO_REPORTS_FOUND
2024
CC_JOB_CODE
@@ -31,6 +35,7 @@ CC_REPORT_TYPE
3135
CC_SHA
3236
CC_SKIP_VALIDATION
3337
CC_SLUG
38+
CC_SWIFT_PROJECT
3439
CC_TOKEN
3540
CC_TOKEN_VAR
3641
CC_VERBOSE

package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def package_scripts(source_dir, source_root, outfile):
2424
for var in sorted_vars:
2525
f.write(f'{var}\n')
2626

27-
print(f"Current script is {len(''.join(lines))} chars.")
27+
print(f"Current script is {len(''.join(lines))} (max: 8192) chars.")
2828
if len(''.join(lines)) > 8192:
2929
print("Due to windows limitiations, script must be under 8192 chars.")
3030
exit(1)

scripts/set_do_upload_args.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ then
3737
done
3838
fi
3939

40+
codecov_du_args+=( $(write_existing_args CODECOV_GCOV_ARGS) )
41+
codecov_du_args+=( $(write_existing_args CODECOV_GCOV_EXECUTABLE) )
42+
codecov_du_args+=( $(write_existing_args CODECOV_GCOV_IGNORE) )
43+
codecov_du_args+=( $(write_existing_args CODECOV_GCOV_INCLUDE) )
4044
codecov_du_args+=( $(write_existing_args CODECOV_GIT_SERVICE) )
4145
codecov_du_args+=( $(write_truthy_args CODECOV_HANDLE_NO_REPORTS_FOUND) )
4246
codecov_du_args+=( $(write_existing_args CODECOV_JOB_CODE) )
@@ -57,5 +61,6 @@ codecov_du_args+=( $(write_existing_args CODECOV_PR) )
5761
codecov_du_args+=( $(write_existing_args CODECOV_REPORT_TYPE) )
5862
codecov_du_args+=( $(write_existing_args CODECOV_SHA) )
5963
codecov_du_args+=( $(write_existing_args CODECOV_SLUG) )
64+
codecov_du_args+=( $(write_existing_args CODECOV_SWIFT_PROJECT) )
6065

6166
IFS=$OLDIFS

0 commit comments

Comments
 (0)