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