codecov-bash icon indicating copy to clipboard operation
codecov-bash copied to clipboard

Swift on Linux doesn't work with default settings

Open Cyberbeni opened this issue 5 years ago • 2 comments

This is my current codecov step during testing on Linux:

llvm-cov export -format="lcov" .build/debug/TypedNotificationCenterPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
bash <(curl -s https://codecov.io/bash) -J 'TypedNotificationCenter' -n 'Linux' -F 'Linux'

I think the first line should be covered by the default options. Link to full workflow: https://github.com/Cyberbeni/TypedNotificationCenter/blob/master/.github/workflows/run_tests.yml

Cyberbeni avatar Dec 01 '19 14:12 Cyberbeni

HI @Cyberbeni

To clarify, you are asking the bash uploader to convert the profdata to lcov for you?

drazisil avatar Jan 10 '20 18:01 drazisil

Yes, just like how the script already handles the default settings output of running Swift tests via Xcode on macOS. https://github.com/codecov/codecov-bash/blob/cdd0d95b045e5dfcaa2aba9672314ade5ee941ff/codecov#L988

Cyberbeni avatar Jan 10 '20 18:01 Cyberbeni