Skip to content

Commit

Permalink
travis: exclude packages from coverage collection
Browse files Browse the repository at this point in the history
Specifically, reset CFLAGS and LDFLAGS before compiling packages, to
prevent them from being compiled with coverage gathering, because
otherwise gcov may confuse IO's src/io.c, or anupq's src/read.c, with
GAP kernel files with the same name
  • Loading branch information
fingolfin authored and ChrisJefferson committed Mar 28, 2018
1 parent e319ab9 commit 5ddf61c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ do
rm -rf NormalizInterface-0.9.8
fi

# reset CFLAGS and LDFLAGS before compiling packages, to prevent
# them from being compiled with coverage gathering, because
# otherwise gcov may confuse IO's src/io.c, or anupq's src/read.c,
# with GAP kernel files with the same name
unset CFLAGS
unset LDFLAGS
if ! "$SRCDIR/bin/BuildPackages.sh" --strict --with-gaproot="$BUILDDIR"
then
echo "Some packages failed to build:"
Expand Down

0 comments on commit 5ddf61c

Please sign in to comment.