Skip to content

Commit

Permalink
[ci] Add the collect-coverage tag for use on Jenkins. (#4912)
Browse files Browse the repository at this point in the history
* [ci] Add the collect-coverage tag for use on Jenkins.

* Move collect-coverage up so we don't set different values for -O
  • Loading branch information
vkargov authored and akoeplinger committed May 22, 2017
1 parent 88a90e5 commit eb18b8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/ci/run-jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ export TESTCMD=${MONO_REPO_ROOT}/scripts/ci/run-step.sh

export TEST_HARNESS_VERBOSE=1

if [[ ${label} == w* ]]; then
if [[ $CI_TAGS == *'collect-coverage'* ]]; then
# Collect coverage for further use by lcov and similar tools.
# Coverage must be collected with -O0 and debug information.
export CFLAGS="-ggdb3 --coverage -O0"
# Collect coverage on all optimizations
export MONO_ENV_OPTIONS="$MONO_ENV_OPTIONS -O=all"
elif [[ ${label} == w* ]]; then
# Passing -ggdb3 on Cygwin breaks linking against libmonosgen-x.y.dll
export CFLAGS="-g -O2"
else
Expand Down

0 comments on commit eb18b8c

Please sign in to comment.