mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 20:52:20 +00:00
👷 Add Gitlab Continuous Integration
This commit is contained in:
parent
622bb42435
commit
559c04322a
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,3 +7,6 @@ ghostream.yml
|
|||||||
# Test video and audio files
|
# Test video and audio files
|
||||||
*.ivf
|
*.ivf
|
||||||
*.ogg
|
*.ogg
|
||||||
|
|
||||||
|
# Coverage files
|
||||||
|
*.cov
|
||||||
|
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- quality-assurance
|
||||||
|
|
||||||
|
unit_tests:
|
||||||
|
image: golang:1.15-alpine
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- apk add --no-cache git build-base tcl pkgconfig cmake libressl-dev linux-headers
|
||||||
|
- git clone --depth 1 --branch v1.4.2 https://github.com/Haivision/srt && cd srt && ./configure --enable-apps=OFF && make install && cd .. && rm -rf srt
|
||||||
|
script:
|
||||||
|
- go test -v -covermode=count -coverprofile cover.cov ./...
|
||||||
|
- go tool cover -func=cover.cov
|
||||||
|
|
||||||
|
linters:
|
||||||
|
image: golang:1.15-alpine
|
||||||
|
stage: quality-assurance
|
||||||
|
script:
|
||||||
|
- go get -u golang.org/x/lint/golint
|
||||||
|
- golint -min_confidence 0 -set_exit_status ./...
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
|
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
|
||||||
[![pipeline status](https://gitlab.crans.org/nounous/ghostream/badges/master/pipeline.svg)](https://gitlab.crans.org/nounous/ghostream/commits/master)
|
[![pipeline status](https://gitlab.crans.org/nounous/ghostream/badges/master/pipeline.svg)](https://gitlab.crans.org/nounous/ghostream/commits/master)
|
||||||
|
[![coverage report](https://gitlab.crans.org/nounous/ghostream/badges/master/coverage.svg)](https://gitlab.crans.org/nounous/ghostream/-/commits/master)
|
||||||
|
|
||||||
*Boooo!* A simple streaming server with authentication and open-source technologies.
|
*Boooo!* A simple streaming server with authentication and open-source technologies.
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ Features:
|
|||||||
|
|
||||||
## Installation with Docker
|
## Installation with Docker
|
||||||
|
|
||||||
An example is given in [docs/docker-compose.yml](doc/docker-compose.yml).
|
An example is given in [docs/docker-compose.yml](docs/docker-compose.yml).
|
||||||
It uses Traefik reverse proxy.
|
It uses Traefik reverse proxy.
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
Loading…
Reference in New Issue
Block a user