blob: e4628847070ee7534d0cbbc088e54ed8fab36247 [file] [log] [blame]
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07001#!/usr/bin/env bash
2set -x
3set -e
4
5IS_COVR=$( python -c "print 'yes' if 'code-coverage' in '$JOB_NAME' else 'no'" )
6
7if [[ $IS_COVR == "yes" ]]; then
8 BASE="`pwd | sed -e 's|/|\\\/|g'`\\"
9 (cd build && gcovr -x -f $BASE/core -f $BASE/daemon -f $BASE/rib -r ../ -o coverage.xml ./)
10fi