1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 11:21:52 +00:00

Fix the path for circleci

This commit is contained in:
winlin 2019-12-10 21:34:20 +08:00
parent 94adda5dae
commit c90e321f9c
3 changed files with 6 additions and 6 deletions

2
.circleci/codecov.yml Normal file
View file

@ -0,0 +1,2 @@
fixes:
- "src/::trunk/src"

View file

@ -9,8 +9,6 @@ jobs:
test:
docker:
- image: ossrs/srs:dev
fixes:
- "src/::trunk/src"
steps:
- checkout
- run: cd trunk && ./configure --gcov && make && ./objs/srs_utest && bash auto/coverage.sh
@ -20,4 +18,3 @@ workflows:
jobs:
- build
- test

View file

@ -9,11 +9,11 @@
workdir=`pwd`/objs/cover
# Create trunk under workdir.
mkdir -p $workdir/trunk && cd $workdir/trunk
mkdir -p $workdir && cd $workdir
ret=$?; if [[ $ret -ne 0 ]]; then echo "Enter workdir failed, ret=$ret"; exit $ret; fi
# Collect all *.gcno and *.gcda to objs/cover.
(rm -rf src && cp -R ../../../src . && cp -R ../../src .)
(rm -rf src && cp -R ../../src . && cp -R ../src .)
ret=$?; if [[ $ret -ne 0 ]]; then echo "Collect *.gcno and *.gcda failed, ret=$ret"; exit $ret; fi
# Generate *.gcov for coverage.
@ -23,7 +23,8 @@ for file in `find src -name "*.cpp"|grep -v utest`; do
done
# Upload report with *.gcov
cd $workdir/trunk &&
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