Skip to content

Instantly share code, notes, and snippets.

@dnoliver
Created August 11, 2017 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnoliver/5a234c9da21bd71f9f57542759ea7b9c to your computer and use it in GitHub Desktop.
Save dnoliver/5a234c9da21bd71f9f57542759ea7b9c to your computer and use it in GitHub Desktop.
Script to install and run coverxygen command on Ubuntu 16.04
#!/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