add codecov

This commit is contained in:
aler9
2021-02-13 20:13:19 +01:00
parent 33254b6ab5
commit e5c4b64dec
4 changed files with 7 additions and 2 deletions

View File

@@ -23,3 +23,6 @@ jobs:
go-version: ${{ matrix.go }}
- run: make test-nodocker
- if: matrix.go == '1.15'
run: bash <(curl -s https://codecov.io/bash)

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/coverage*.txt

View File

@@ -52,12 +52,12 @@ test-examples:
go build -o /dev/null ./examples/...
test-pkg:
go test -race -v ./pkg/...
go test -v -race -coverprofile=coverage-pkg.txt ./pkg/...
test-root:
$(foreach IMG,$(shell echo testimages/*/ | xargs -n1 basename), \
docker build -q testimages/$(IMG) -t gortsplib-test-$(IMG)$(NL))
go test -race -v .
go test -v -race -coverprofile=coverage-root.txt .
test-nodocker: test-examples test-pkg test-root

View File

@@ -3,6 +3,7 @@
[![Test](https://github.com/aler9/gortsplib/workflows/test/badge.svg)](https://github.com/aler9/gortsplib/actions?query=workflow:test)
[![Lint](https://github.com/aler9/gortsplib/workflows/lint/badge.svg)](https://github.com/aler9/gortsplib/actions?query=workflow:lint)
[![CodeCov](https://codecov.io/gh/aler9/gortsplib/branch/main/graph/badge.svg)](https://codecov.io/gh/aler9/gortsplib/branch/main)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/aler9/gortsplib)](https://pkg.go.dev/github.com/aler9/gortsplib#pkg-index)
RTSP 1.0 client and server library for the Go programming language, written for [rtsp-simple-server](https://github.com/aler9/rtsp-simple-server).