mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-06-25 14:06:27 +02:00
Updated codecov.
This commit is contained in:
parent
445880108a
commit
51528a4389
10
.github/workflows/coverage.yml
vendored
10
.github/workflows/coverage.yml
vendored
@ -42,12 +42,14 @@ jobs:
|
|||||||
CMAKE_LIBRARY_PATH="${BASE}/build" GTEST_ROOT="${BASE}/usr" CMAKE_PREFIX_PATH="${BASE}/usr/gcc/lib64/cmake" cmake -DMSGPACK_32BIT=OFF -DBUILD_SHARED_LIBS=ON -DMSGPACK_CHAR_SIGN=signed -DMSGPACK_BUILD_EXAMPLES=ON -DMSGPACK_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DMSGPACK_GEN_COVERAGE=ON ..
|
CMAKE_LIBRARY_PATH="${BASE}/build" GTEST_ROOT="${BASE}/usr" CMAKE_PREFIX_PATH="${BASE}/usr/gcc/lib64/cmake" cmake -DMSGPACK_32BIT=OFF -DBUILD_SHARED_LIBS=ON -DMSGPACK_CHAR_SIGN=signed -DMSGPACK_BUILD_EXAMPLES=ON -DMSGPACK_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DMSGPACK_GEN_COVERAGE=ON ..
|
||||||
make -j4
|
make -j4
|
||||||
make test
|
make test
|
||||||
- name: Upload coverage to Codecov
|
- name: Generate coverage
|
||||||
working-directory: build
|
|
||||||
run: |
|
run: |
|
||||||
# Create lcov report
|
# Create lcov report
|
||||||
lcov --capture --directory . --output-file coverage.info
|
lcov --capture --directory . --output-file coverage.info
|
||||||
lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
|
lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
|
||||||
lcov --list coverage.info # debug info
|
lcov --list coverage.info # debug info
|
||||||
# Uploading report to CodeCov
|
- name: Upload coverage to Codecov
|
||||||
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
|
uses: codecov/codecov-action@v5
|
||||||
|
with:
|
||||||
|
files: build/coverage.info
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
===================
|
===================
|
||||||
|
|
||||||
Version 6.1.0 [](https://github.com/msgpack/msgpack-c/actions) [](https://ci.appveyor.com/project/redboltz/msgpack-c/branch/c_master)
|
Version 6.1.0 [](https://github.com/msgpack/msgpack-c/actions) [](https://ci.appveyor.com/project/redboltz/msgpack-c/branch/c_master)
|
||||||
[](https://codecov.io/gh/msgpack/msgpack-c/branch/c_master)
|
[](https://app.codecov.io/gh/msgpack/msgpack-c/tree/c_master)
|
||||||
|
|
||||||
It's like JSON but smaller and faster.
|
It's like JSON but smaller and faster.
|
||||||
|
|
||||||
|
@ -27,10 +27,6 @@ comment:
|
|||||||
|
|
||||||
ignore:
|
ignore:
|
||||||
- "test"
|
- "test"
|
||||||
- "fuzz"
|
|
||||||
- "erb"
|
|
||||||
- "ci"
|
- "ci"
|
||||||
- "cmake"
|
- "cmake"
|
||||||
- "examle"
|
- "example"
|
||||||
- "external"
|
|
||||||
- "usr"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user