Created
August 11, 2017 17:19
-
-
Save dnoliver/5a234c9da21bd71f9f57542759ea7b9c to your computer and use it in GitHub Desktop.
Script to install and run coverxygen command on Ubuntu 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# install dependencies | |
apt-get install -y --no-install-recommends \ | |
python3 python3-pip doxygen lcov && \ | |
pip3 install setuptools && \ | |
pip3 install coverxygen | |
# create coverage folder if it not exists | |
mkdir -p build/coverage | |
# run coverxygen | |
python3 -m coverxygen \ | |
--xml-dir build/xml \ | |
--src-dir . \ | |
--output build/coverage/doc-coverage.info | |
# Generate html report | |
genhtml \ | |
--no-function-coverage \ | |
--no-branch-coverage \ | |
--output build/coverage/doc-coverage \ | |
build/coverage/doc-coverage.info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment