From 699b3c11d9228ba77f2ce9a418968053ae047f8a Mon Sep 17 00:00:00 2001 From: Mickey Rose Date: Wed, 14 Aug 2019 13:36:44 +0200 Subject: [PATCH] travis: silence gcov output and errors flooding build log Also added ignore paths from `codecov.yml` to the command, because codecov-bash doesn't pull those from there. Currently its `parse_yaml` function simply ignores arrays, so they don't even check for "ignore". https://github.com/codecov/codecov-bash/blob/4678d212cce2078bbaaf5027af0c0dafaad6a095/codecov#L834 (cherry picked from commit d09fdd78a90c342185794486fe72655b4f2338cf) --- scripts/travis-common.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/travis-common.sh b/scripts/travis-common.sh index f15eecdbc..00c3bd6c7 100644 --- a/scripts/travis-common.sh +++ b/scripts/travis-common.sh @@ -88,5 +88,15 @@ configure () { } coverage () { - ./codecov -x "${LLVM_COV:-llvm-cov} gcov" -Z + ./codecov -Z \ + -g "./benchmark/**" \ + -g "./demo/**" \ + -g "./deps/**" \ + -g "./docs/**" \ + -g "./fonts/**" \ + -g "./mason_packages/**" \ + -g "./.sconf_temp/**" \ + -g "./scons/**" \ + -g "./test/**" \ + -x "${LLVM_COV:-llvm-cov} gcov >/dev/null 2>&1" }