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

CI: Update codecov badge

This commit is contained in:
winlin 2019-02-02 21:51:08 +08:00
parent 7243d8e7b8
commit a25efa3764
3 changed files with 5 additions and 6 deletions

View file

@ -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:

View file

@ -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)
[<img width="52" alt="Skype" src="https://cloud.githubusercontent.com/assets/2777660/24329166/3821a328-1230-11e7-844a-506a5d17dd3d.png">](https://github.com/ossrs/srs/wiki/v1_EN_Contact#skype-or-gitter)

View file

@ -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 &&