blob: ccbb62eea6fd47c037d2bbeaaa5bac6dc167933f [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
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