diff --git a/.circleci/config.yml b/.circleci/config.yml index 8115af858..cc0d2c346 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,7 @@ jobs: - image: ossrs/dev steps: - checkout - - run: cd trunk && ./configure --gcov --without-research --without-librtmp && make && bash auto/coverage.sh + - run: cd trunk && ./configure --gcov --without-research --without-librtmp && make && ./objs/srs_utest && bash auto/coverage.sh workflows: version: 2 build_and_test: diff --git a/README.md b/README.md index 9aeb19d25..1070e45d2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Simple-RTMP-Server [![CircleCI](https://circleci.com/gh/ossrs/srs/tree/3.0release.svg?style=svg&circle-token=1ef1d5b5b0cde6c8c282ed856a18199f9e8f85a9)](https://circleci.com/gh/ossrs/srs/tree/3.0release) +[![codecov](https://codecov.io/gh/ossrs/srs/branch/3.0release/graph/badge.svg)](https://codecov.io/gh/ossrs/srs) [![Wechat](https://cloud.githubusercontent.com/assets/2777660/22814959/c51cbe72-ef92-11e6-81cc-32b657b285d5.png)](https://github.com/ossrs/srs/wiki/v1_CN_Contact#wechat) [Skype](https://github.com/ossrs/srs/wiki/v1_EN_Contact#skype-or-gitter) diff --git a/trunk/auto/coverage.sh b/trunk/auto/coverage.sh index 21a399117..79eef9dfe 100644 --- a/trunk/auto/coverage.sh +++ b/trunk/auto/coverage.sh @@ -1,11 +1,9 @@ #!/bin/bash # In .circleci/config.yml, generate *.gcno with -# ./configure --gcov --without-research --without-librtmp - -# Generate *.gcda -./objs/srs_utest -ret=$?; if [[ $ret -ne 0 ]]; then echo "Run SRS utest failed, ret=$ret"; exit $ret; fi +# ./configure --gcov --without-research --without-librtmp +# and generate *.gcda by +# ./objs/srs_utest # Collect all *.gcno and *.gcda to objs/cover. (mkdir -p objs/cover && cd objs/cover &&