From 1b2aff84bc50f0681f37b959af6ecaed9490a95d Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 10 Dec 2019 21:45:58 +0800 Subject: [PATCH] Fix the path for circleci --- .circleci/codecov.yml | 2 -- trunk/auto/coverage.sh | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 .circleci/codecov.yml diff --git a/.circleci/codecov.yml b/.circleci/codecov.yml deleted file mode 100644 index 301e3ca46..000000000 --- a/.circleci/codecov.yml +++ /dev/null @@ -1,2 +0,0 @@ -fixes: - - "src/::trunk/src" diff --git a/trunk/auto/coverage.sh b/trunk/auto/coverage.sh index c4313645d..a0326d36b 100644 --- a/trunk/auto/coverage.sh +++ b/trunk/auto/coverage.sh @@ -22,9 +22,13 @@ for file in `find src -name "*.cpp"|grep -v utest`; do ret=$?; if [[ $ret -ne 0 ]]; then echo "Collect $file failed, ret=$ret"; exit $ret; fi done +# Cook the gcov files. +find . -name "*.gcov"|grep -v srs|xargs rm -f && +sed -i 's|src/|trunk/src/|g' *.gcov +ret=$?; if [[ $ret -ne 0 ]]; then echo "Cook gcov files failed, ret=$ret"; exit $ret; fi + # Upload report with *.gcov cd $workdir && -find . -name "*.gcov"|grep -v srs|xargs rm -f && export CODECOV_TOKEN="493bba46-c468-4e73-8b45-8cdd8ff62d96" && bash <(curl -s https://codecov.io/bash) exit 0