1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-07-06 20:34:01 +02:00

👷 Add Gitlab Continuous Integration

This commit is contained in:
Yohann D'ANELLO
2020-09-27 21:21:32 +02:00
parent 622bb42435
commit 559c04322a
3 changed files with 25 additions and 1 deletions

20
.gitlab-ci.yml Normal file
View 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 ./...