From d866c77265a010693ba4f2014ee37f5d538bdc87 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 11 Dec 2019 07:23:54 +0800 Subject: [PATCH] Fix the path for circleci --- .gitignore | 1 - trunk/auto/coverage.sh | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ad70ea77c..011dd5fac 100644 --- a/.gitignore +++ b/.gitignore @@ -31,5 +31,4 @@ .AppleDouble .idea -.codecov.yml diff --git a/trunk/auto/coverage.sh b/trunk/auto/coverage.sh index 20b152601..52c0fce74 100644 --- a/trunk/auto/coverage.sh +++ b/trunk/auto/coverage.sh @@ -23,11 +23,16 @@ for file in `find src -name "*.cpp"|grep -v utest`; do done # Cook the gcov files. -# 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 ret=$?; if [[ $ret -ne 0 ]]; then echo "Cook gcov files failed, ret=$ret"; exit $ret; fi # Upload report with *.gcov +# Remark: The file codecov.yml is not neccessary. It literally depends on git. +# Note: The right path is like: +# https://codecov.io/gh/ossrs/srs/src/3.0release/trunk/src/protocol/srs_rtmp_stack.cpp +# https://codecov.io/gh/ossrs/srs/src/20fbb4466fdc8ba5d810b8570df6004063212838/trunk/src/protocol/srs_rtmp_stack.cpp +# Remark: It takes a few minutes to sync with github, so it might not available when CircleCI is done. +# https://circleci.com/gh/ossrs/srs/tree/3.0release cd $workdir && export CODECOV_TOKEN="493bba46-c468-4e73-8b45-8cdd8ff62d96" && bash <(curl -s https://codecov.io/bash) &&