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

Support standard stream

Open kgryte opened this issue 9 years ago • 1 comments

Similar to the Node.js module codecov, would be useful if the bash script accepted a coverage report from stdin; e.g.,

$ cat ./lcov.info | bash <(curl -s https://codecov.io/bash) -F test

This would allow support for pipelining without the need to write to disk in order to upload.

kgryte avatar Aug 30 '16 17:08 kgryte

Hey @kgryte thank you for the feature suggestion. I do not know of a way to have both these options work without locking stdin on the first call below:

bash <(curl -s https://codecov.io/bash)

-vs-

echo "<report data>" | bash <(curl -s https://codecov.io/bash)

All my attempts to read /dev/stdin have locked the IO waiting for content to be written to stdin. My research into this has not resolved well... :(

stevepeak avatar Aug 31 '16 11:08 stevepeak