blob: ccbb62eea6fd47c037d2bbeaaa5bac6dc167933f [file] [log] [blame]
Alexander Afanasyev7495a7e2014-11-20 19:21:27 -08001#!/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/src -r ../ -o coverage.xml -b ./)
10fi