mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 15:16:21 +00:00
ci: remove coverage from linux builds
Coverage is now collected only in the dedicated Code Coverage job.
This commit is contained in:
16
ci-build.sh
16
ci-build.sh
@@ -347,27 +347,19 @@ else
|
|||||||
pids=()
|
pids=()
|
||||||
for idx in 1 2 3 4; do
|
for idx in 1 2 3 4; do
|
||||||
if [ $idx -le ${#tests[@]} ]; then
|
if [ $idx -le ${#tests[@]} ]; then
|
||||||
# All builds run Valgrind
|
# All builds run Valgrind on Linux
|
||||||
if [ "$ARCH" = "linux" ]; then
|
if [ "$ARCH" = "linux" ]; then
|
||||||
run_valgrind="yes"
|
run_valgrind="yes"
|
||||||
if [ $idx -eq 1 ]; then
|
extra_flags="--enable-valgrind"
|
||||||
extra_flags="--enable-valgrind --enable-coverage"
|
|
||||||
run_coverage="yes"
|
|
||||||
else
|
|
||||||
extra_flags="--enable-valgrind"
|
|
||||||
run_coverage="no"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
extra_flags=""
|
extra_flags=""
|
||||||
run_valgrind="no"
|
run_valgrind="no"
|
||||||
run_coverage="no"
|
|
||||||
fi
|
fi
|
||||||
|
run_coverage="no"
|
||||||
build_and_test "${tests[$((idx-1))]}" "$* $extra_flags" "$idx" "$run_valgrind" "$run_coverage" &
|
build_and_test "${tests[$((idx-1))]}" "$* $extra_flags" "$idx" "$run_valgrind" "$run_coverage" &
|
||||||
pids+=("$!")
|
pids+=("$!")
|
||||||
flags_desc=""
|
flags_desc=""
|
||||||
[ "$run_valgrind" = "yes" ] && flags_desc="Valgrind"
|
[ "$run_valgrind" = "yes" ] && flags_desc=" [+Valgrind]"
|
||||||
[ "$run_coverage" = "yes" ] && flags_desc="${flags_desc:+$flags_desc+}Coverage"
|
|
||||||
[ -n "$flags_desc" ] && flags_desc=" [+$flags_desc]"
|
|
||||||
echo " → Build $idx: ${tests[$((idx-1))]}$flags_desc"
|
echo " → Build $idx: ${tests[$((idx-1))]}$flags_desc"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user