blob: 6a7b0a8b09d6c9fca5298ec2ebe09b0fa87665a5 [file] [log] [blame]
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04001#!/usr/bin/env bash
2set -x
Alexander Afanasyev33ce4c32014-10-24 11:19:45 -07003set -e
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04004
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04005JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04007
Alexander Afanasyevb346ddb2015-06-03 00:52:03 -04008if has code-coverage $JOB_NAME; then
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04009 BASE="`pwd | sed -e 's|/|\\\/|g'`\\"
10 (cd build && gcovr -x -f $BASE/src -r ../ -o coverage.xml -b ./)
11fi