diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-07 21:09:37 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-07 21:09:37 +0200 |
commit | 28a86608a84672b3b64981c3b47b80b051cb5177 (patch) | |
tree | df8120ff0e3f20ad35ae2dc1f1432009dd37464b /ci/common/submit_coverage.sh | |
parent | 38342d75f64e0825505bbb6ff6e1a67b12bf3f17 (diff) | |
download | rneovim-28a86608a84672b3b64981c3b47b80b051cb5177.tar.gz rneovim-28a86608a84672b3b64981c3b47b80b051cb5177.tar.bz2 rneovim-28a86608a84672b3b64981c3b47b80b051cb5177.zip |
CI: improve gcov handling #10404
- Move __gcov_flush to process_spawn, for more reliable coverage
tracking of subprocesses
- Travis: use GCOV_ERROR_FILE
- codecov: use "-X fix" to skip "fixing" uploaded coverage data; it
should be handled by codecov's backend instead.
- AppVeyor: no $PATH mangling, which breaks with the improved coverage tracking
due to missing .dll in PATH.
Diffstat (limited to 'ci/common/submit_coverage.sh')
-rwxr-xr-x | ci/common/submit_coverage.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ci/common/submit_coverage.sh b/ci/common/submit_coverage.sh index 7c343268d1..218b90d6f4 100755 --- a/ci/common/submit_coverage.sh +++ b/ci/common/submit_coverage.sh @@ -25,6 +25,7 @@ python3 -m gcovr --branches --exclude-unreachable-branches --print-summary -j 2 # Upload to codecov. # -X gcov: disable gcov, done manually above. +# -X fix: disable fixing of reports (not necessary, rather slow) # -Z: exit non-zero on failure # -F: flag(s) # NOTE: ignoring flags for now, since this causes timeouts on codecov.io then, @@ -32,7 +33,7 @@ python3 -m gcovr --branches --exclude-unreachable-branches --print-summary -j 2 # Flags must match pattern ^[\w\,]+$ ("," as separator). codecov_flags="$(uname -s),${1}" codecov_flags=$(echo "$codecov_flags" | sed 's/[^,_a-zA-Z0-9]/_/g') -if ! "$codecov_sh" -f coverage.xml -X gcov -Z -F "${codecov_flags}"; then +if ! "$codecov_sh" -f coverage.xml -X gcov -X fix -Z -F "${codecov_flags}"; then echo "codecov upload failed." fi |