File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 57
57
run : |
58
58
if [ ${{ matrix.compiler }} = gcc ]; then compiler=g++; else compiler="clang lld ?exact-name(libclang-rt-dev)"; fi
59
59
apt -y update
60
- apt -y install $compiler meson pkg-config cmake rapidjson-dev libssl-dev netbase '?exact-name(libhowardhinnant-date-dev)' '?exact-name(libgmock-dev) (?version([1-9]\.[1-9][1-9]) | ?version([1-9]\.[2-9][0-9]))' '?exact-name(libcpp-httplib-dev)' libcurl4-openssl-dev git ca-certificates curl sqop lcov llvm-dev --no-install-recommends
60
+ apt -y install $compiler meson pkg-config cmake rapidjson-dev libssl-dev netbase '?exact-name(libhowardhinnant-date-dev)' '?exact-name(libgmock-dev) (?version([1-9]\.[1-9][1-9]) | ?version([1-9]\.[2-9][0-9]))' '?exact-name(libcpp-httplib-dev)' libcurl4-openssl-dev git ca-certificates curl sqop llvm-dev --no-install-recommends
61
61
62
62
- name : Install dependencies (Red Hat)
63
63
if : contains(matrix.os, 'redhat')
95
95
if : ${{ !contains(matrix.os, 'redhat') }}
96
96
run : |
97
97
mkdir -p $HOME/.local/bin
98
- if [ "${{ matrix.compiler }}" = 'clang' ]; then printf 'llvm-cov gcov "$@"' > $HOME/.local/bin/cov.sh; else printf 'gcov "$@"' > $HOME/.local/bin/cov.sh; fi && chmod +x $HOME/.local/bin/cov.sh
99
- lcov --capture --output-file coverage.info --directory . --gcov-tool $HOME/.local/bin/cov.sh --exclude '/usr/*' --exclude "${HOME}"'/.cache/*' --exclude '*/tests/*' --exclude '*/subprojects/*'
100
- lcov --list coverage.info
98
+ echo '#!/bin/sh' > $HOME/.local/bin/cov.sh
99
+ if [ "${{ matrix.compiler }}" = 'clang' ]
100
+ then
101
+ echo 'llvm-cov gcov "$@"' >> $HOME/.local/bin/cov.sh
102
+ else
103
+ echo 'gcov "$@"' >> $HOME/.local/bin/cov.sh
104
+ fi
105
+ chmod +x $HOME/.local/bin/cov.sh
106
+ cd build
107
+ find .. -name '*.gcda' -o -name '*.gcno' | grep -v tests | xargs $HOME/.local/bin/cov.sh --branch-probabilities --preserve-paths --relative-only
101
108
curl --remote-name-all \
102
109
https://keybase.io/codecovsecurity/pgp_keys.asc \
103
110
https://uploader.codecov.io/latest/linux/codecov \
You can’t perform that action at this time.
0 commit comments