add codecov
This commit is contained in:
parent
b4f7f6f4fa
commit
fa381c73ac
|
@ -15,4 +15,10 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- run: make test
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: "1.15"
|
||||
|
||||
- run: make test-nodocker
|
||||
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
/tmp
|
||||
/release
|
||||
/coverage*.txt
|
||||
|
|
16
Makefile
16
Makefile
|
@ -43,6 +43,16 @@ COPY . ./
|
|||
endef
|
||||
export DOCKERFILE_TEST
|
||||
|
||||
test-internal:
|
||||
go test -v -race -coverprofile=coverage-internal.txt ./internal/...
|
||||
|
||||
test-root:
|
||||
$(foreach IMG,$(shell echo testimages/*/ | xargs -n1 basename), \
|
||||
docker build -q testimages/$(IMG) -t rtsp-simple-server-test-$(IMG)$(NL))
|
||||
go test -v -race -coverprofile=coverage-root.txt .
|
||||
|
||||
test-nodocker: test-internal test-root
|
||||
|
||||
test:
|
||||
echo "$$DOCKERFILE_TEST" | docker build -q . -f - -t temp
|
||||
docker run --rm \
|
||||
|
@ -50,12 +60,6 @@ test:
|
|||
temp \
|
||||
make test-nodocker
|
||||
|
||||
test-nodocker:
|
||||
$(foreach IMG,$(shell echo testimages/*/ | xargs -n1 basename), \
|
||||
docker build -q testimages/$(IMG) -t rtsp-simple-server-test-$(IMG)$(NL))
|
||||
go test -race -v ./internal/...
|
||||
go test -race -v .
|
||||
|
||||
lint:
|
||||
docker run --rm -v $(PWD):/app -w /app \
|
||||
$(LINT_IMAGE) \
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
[![Test](https://github.com/aler9/rtsp-simple-server/workflows/test/badge.svg)](https://github.com/aler9/rtsp-simple-server/actions?query=workflow:test)
|
||||
[![Lint](https://github.com/aler9/rtsp-simple-server/workflows/lint/badge.svg)](https://github.com/aler9/rtsp-simple-server/actions?query=workflow:lint)
|
||||
[![CodeCov](https://codecov.io/gh/aler9/rtsp-simple-server/branch/main/graph/badge.svg)](https://codecov.io/gh/aler9/rtsp-simple-server/branch/main)
|
||||
[![Docker Hub](https://img.shields.io/badge/docker-aler9%2Frtsp--simple--server-blue)](https://hub.docker.com/r/aler9/rtsp-simple-server)
|
||||
|
||||
_rtsp-simple-server_ is a simple, ready-to-use and zero-dependency RTSP/RTMP server and proxy, a software that allows users to publish, read and proxy live video and audio streams. RTSP is a specification that describes how to perform these operations with the help of a server, that is contacted by both publishers and readers and relays the publisher's streams to the readers.
|
||||
|
@ -16,7 +17,7 @@ Features:
|
|||
* Serve multiple streams at once in separate paths
|
||||
* Encrypt streams with TLS (RTSPS)
|
||||
* Authenticate readers and publishers
|
||||
* Redirect to other RTSP servers (load balancing)
|
||||
* Redirect readers to other RTSP servers (load balancing)
|
||||
* Run custom commands when clients connect, disconnect, read or publish streams
|
||||
* Reload the configuration without disconnecting existing clients (hot reloading)
|
||||
* Compatible with Linux, Windows and macOS, does not require any dependency or interpreter, it's a single executable
|
||||
|
|
Loading…
Reference in New Issue