8000 add directories to skip when gcov processing · samuelpiltch/codecov-python@3e1c078 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 17, 2018. It is now read-only.

Commit 3e1c078

Browse files
committed
add directories to skip when gcov processing
1 parent 7a05e49 commit 3e1c078

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

codecov/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,15 @@ def main(*argv, **kwargs):
605605
write('XX> Skip processing gcov')
606606

607607
else:
608+
dont_search_here = (
609+
"-not -path ./bower_components/** "
610+
"-not -path ./node_modules/** "
611+
"-not -path ./vendor/**"
612+
)
608613
write('==> Processing gcov (disable by -X gcov)')
609-
cmd = "find %s -type f -name '*.gcno' %s -exec %s -pb %s {} +" % (
614+
cmd = "find %s %s -type f -name '*.gcno' %s -exec %s -pb %s {} +" % (
610615
(codecov.gcov_root or root),
616+
dont_search_here,
611617
" ".join(map(lambda a: "-not -path '%s'" % a, codecov.gcov_glob)),
612618
(codecov.gcov_exec or ''),
613619
(codecov.gcov_args or ''))

0 commit comments

Comments
 (0)
0