Skip to content

Commit

Permalink
docs: Update codecov guide: adapt build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
bugwelle committed Jan 28, 2024
1 parent 7b10a91 commit 9f19c84
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/admin/codecov.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Codecov

__State__: last updated 2023-05-11
__State__: last updated 2024-01-28

## What is Codecov?

Expand Down Expand Up @@ -31,12 +31,15 @@ Then use the [Codecov Uploader](https://docs.codecov.com/docs/codecov-uploader):

```sh
# In MediaElch's source directory
cd build/coverage
ninja coverage
cmake --preset debug-gcc
cmake --build --preset debug-gcc
cmake --build --preset debug-gcc --target coverage

curl -Os https://uploader.codecov.io/latest/linux/codecov
cd build/debug-gcc

curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov

export CODECOV_TOKEN="<YOUR TOKEN>"
unset NODE_OPTIONS # See Codecov documentation; workaround as of 2023-05-11
./codecov --token "${CODECOV_TOKEN}" --branch master --file=coverage-merged.info
Expand Down

0 comments on commit 9f19c84

Please sign in to comment.