Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
2 | set -x | ||||
3 | set -e | ||||
4 | |||||
5 | IS_COVR=$( python -c "print 'yes' if 'code-coverage' in '$JOB_NAME' else 'no'" ) | ||||
6 | |||||
7 | if [[ $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 ./) | ||||
10 | fi |