diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-25 01:11:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 01:11:17 +0200 |
commit | d1faf900b1c682c0d5c20854fcd8d6d02a12200c (patch) | |
tree | cee0178f7aca04b13ecdb0a969672a4f67ce491b | |
parent | b8fcf62da9261e47821c5e3d369dc4fd58d2b721 (diff) | |
download | rneovim-d1faf900b1c682c0d5c20854fcd8d6d02a12200c.tar.gz rneovim-d1faf900b1c682c0d5c20854fcd8d6d02a12200c.tar.bz2 rneovim-d1faf900b1c682c0d5c20854fcd8d6d02a12200c.zip |
coverage: use "cd" with gcovr (#10594)
This makes the invocation compatible for the upcoming gcovr 4.2 release,
and is the correct way of invoking it.
Ref: https://github.com/gcovr/gcovr/commit/a782972#commitcomment-34420728
-rwxr-xr-x | ci/common/submit_coverage.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ci/common/submit_coverage.sh b/ci/common/submit_coverage.sh index 218b90d6f4..4e92975d22 100755 --- a/ci/common/submit_coverage.sh +++ b/ci/common/submit_coverage.sh @@ -21,7 +21,10 @@ if ! [ -f "$codecov_sh" ]; then python3 -m pip install --quiet --user gcovr fi -python3 -m gcovr --branches --exclude-unreachable-branches --print-summary -j 2 --exclude '.*/auto/.*' --root build --delete -o coverage.xml --xml +( + cd build + python3 -m gcovr --branches --exclude-unreachable-branches --print-summary -j 2 --exclude '.*/auto/.*' --root .. --delete -o ../coverage.xml --xml +) # Upload to codecov. # -X gcov: disable gcov, done manually above. |