1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-23 01:32:19 +00:00
ghostream/.gitlab-ci.yml

26 lines
649 B
YAML
Raw Normal View History

stages:
- test
- quality-assurance
unit_tests:
image: golang:1.15-alpine
stage: test
before_script:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community build-base ffmpeg gcc libsrt-dev
script:
- go test -v -covermode=count -coverprofile cover.cov ./...
- go tool cover -func=cover.cov
2020-10-09 20:55:32 +00:00
- go tool cover -html=cover.cov -o coverage.html
artifacts:
paths:
- coverage.html
expire_in: 1 week
linters:
image: golang:1.15-alpine
stage: quality-assurance
script:
- go get -u golang.org/x/lint/golint
2020-10-09 20:36:02 +00:00
- golint -min_confidence 0.2 -set_exit_status ./...
allow_failure: true