blob: a0e983e27d7c3b476b31eea95262bb4c62378cd9 [file] [log] [blame]
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07001#!/usr/bin/env bash
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07002set -e
3
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -08004JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
5source "$JDIR"/util.sh
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07006
Davide Pesaventoe0edc4c2016-09-13 18:29:52 +00007set -x
8
Davide Pesavento231ddd72016-09-02 22:20:00 +00009if [[ $JOB_NAME == *"code-coverage" ]]; then
Davide Pesavento0a5e5e22016-09-13 18:29:33 +000010 gcovr --object-directory=build \
11 --output=build/coverage.xml \
12 --exclude="$PWD/(build|tests|websocketpp)" \
Davide Pesavento231ddd72016-09-02 22:20:00 +000013 --root=. \
Davide Pesavento0a5e5e22016-09-13 18:29:33 +000014 --xml
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070015fi