Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for coverage reports #2

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ubuntu-22.04/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cmake_sha256=1c511d09516af493694ed9baf13c55947a36389674d657a2d5e0ccedc6b291d8
doxygen_version=${DOXYGEN_VERSION:-1.9.5}
doxygen_md5=1edb77277a84cf07972ffcd60acb8c1d
conan_version=${CONAN_VERSION:-1.58}
gcovr_version=${GCOVR_VERSION:-6.0}

# Do not add a stanza to this script without explaining why it is here.

Expand Down Expand Up @@ -81,7 +82,8 @@ apt install --yes ${dependencies}
# Give us nice unversioned aliases for clang and company.
update-alternatives --install \
/usr/bin/clang clang /usr/bin/clang-${clang_version} 100 \
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-${clang_version}
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-${clang_version} \
--slave /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-${clang_version}
update-alternatives --auto clang
update-alternatives --install \
/usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-${clang_version} 100
Expand Down Expand Up @@ -127,7 +129,7 @@ cd ../..
rm --recursive --force ${doxygen_slug}

# Install Conan.
pip3 install conan==${conan_version}
pip3 --no-cache-dir install conan==${conan_version}

conan profile new --detect gcc
conan profile update settings.compiler=gcc gcc
Expand All @@ -145,5 +147,7 @@ conan profile update settings.compiler.cppstd=20 clang
conan profile update env.CC=/usr/bin/clang clang
conan profile update env.CXX=/usr/bin/clang++ clang

pip3 --no-cache-dir install gcovr==${gcovr_version}

# Clean up.
apt clean
1 change: 1 addition & 0 deletions ubuntu-22.04/metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ clang --version
cmake --version
doxygen --version
conan --version
gcovr --version