blob: b00354c0f02ee7290c17d6546f4e58587b27bef9 [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 \
Alexander Afanasyev465056e2016-12-29 16:43:01 -080012 --exclude="$PWD/(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