From e3077a80348df3fbe19a9ea469cb410fd2086d8b Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 10 Dec 2019 22:09:52 +0800 Subject: [PATCH] Fix the path for circleci --- .circleci/codecov.yml | 2 ++ trunk/auto/coverage.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .circleci/codecov.yml diff --git a/.circleci/codecov.yml b/.circleci/codecov.yml new file mode 100644 index 000000000..830d65944 --- /dev/null +++ b/.circleci/codecov.yml @@ -0,0 +1,2 @@ +fixes: + - "src/::trunk/src/" \ No newline at end of file diff --git a/trunk/auto/coverage.sh b/trunk/auto/coverage.sh index a0326d36b..be4b3afb0 100644 --- a/trunk/auto/coverage.sh +++ b/trunk/auto/coverage.sh @@ -23,8 +23,8 @@ for file in `find src -name "*.cpp"|grep -v utest`; do done # Cook the gcov files. -find . -name "*.gcov"|grep -v srs|xargs rm -f && -sed -i 's|src/|trunk/src/|g' *.gcov +# The right path is https://codecov.io/gh/ossrs/srs/src/1b2aff84bc50f0681f37b959af6ecaed9490a95d/trunk/src/kernel/srs_kernel_codec.cpp +find . -name "*.gcov"|grep -v srs|xargs rm -f && rm -rf src ret=$?; if [[ $ret -ne 0 ]]; then echo "Cook gcov files failed, ret=$ret"; exit $ret; fi # Upload report with *.gcov