Skip to content

Commit

Permalink
Update example command for uploading multiple reports (#2105)
Browse files Browse the repository at this point in the history
Update uploading-coverage-in-advanced-scenarios.md

The previous example doesn't work in the official docker image since that is alpine based, the new example works with both GNU and alpine env

Co-authored-by: Nicola Klemenc <[email protected]>
  • Loading branch information
rohit-gohri and nicklem authored May 30, 2024
1 parent 37704d8 commit 22fba06
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ bash <(curl -Ls https://coverage.codacy.com/get.sh) report \

You can also upload all your reports dynamically using the command `find`. For example:

!!! note
This example works only on systems that use GNU `find` with support for the `-printf` action, such as Linux.

```bash
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \
-l Java $(find . -name 'jacoco*.xml' -printf '-r %p ')
-l Java $(find . -name 'jacoco*.xml' | sed 's,^, -r ,' | xargs echo)
```

### Uploading reports in sequence {: id="multiple-reports-sequence"}
Expand Down

0 comments on commit 22fba06

Please sign in to comment.