mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 03:25:52 +08:00
add codecov
This commit is contained in:
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@@ -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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/coverage*.txt
|
4
Makefile
4
Makefile
@@ -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
|
||||
|
||||
|
@@ -3,6 +3,7 @@
|
||||
|
||||
[](https://github.com/aler9/gortsplib/actions?query=workflow:test)
|
||||
[](https://github.com/aler9/gortsplib/actions?query=workflow:lint)
|
||||
[](https://codecov.io/gh/aler9/gortsplib/branch/main)
|
||||
[](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).
|
||||
|
Reference in New Issue
Block a user