blob: 19f014c4879561bc8a78bda2d6d481e0a4ffd730 [file] [log] [blame]
Alexander Afanasyeva9369b42017-01-11 11:58:00 -08001#!/usr/bin/env bash
2set -e
3
4JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
6
7set -x
8
9if [[ $JOB_NAME == *"code-coverage" ]]; then
10 gcovr --object-directory=build \
11 --output=build/coverage.xml \
12 --exclude="$PWD/(tests)" \
13 --root=. \
14 --xml
15
16 # Generate also a detailed HTML output
17 mkdir build/coverage
18 gcovr --object-directory=build \
19 --output=build/coverage/index.html \
20 --exclude="$PWD/(tests)" \
21 --root=. \
22 --html \
23 --html-details
24fi