-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
76 lines (69 loc) · 2.03 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
image: golang:1.22.1
stages:
- test
cicd:
stage: test
services:
# Support Postgres
- name: postgres:15
alias: postgres
variables:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# Support memcached
- name: memcached:1.6.20-alpine
alias: memcached
command:
- -m
- "256"
- -I
- 10m
- -p
- "18080"
# Support S3
- name: quay.io/minio/minio:RELEASE.2023-07-07T07-13-57Z
alias: minio
variables:
LOG_LEVEL: info
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: password
command:
- server
- /data
- --console-address
- ":9090"
variables:
GOOGLE_APPLICATION_CREDENTIALS: gcp-creds.json
PGHOST: postgres
PGPORT: 5432
PGDATABASE: postgres
PGUSER: postgres
PGPASSWORD: postgres
MEMCACHED_HOST: memcached
MEMCACHED_PORT: 18080
AWS_ACCESS_KEY_ID: root
AWS_SECRET_ACCESS_KEY: password
UNITTEST_S3_ENDPOINT: minio:9000
script:
- go install github.com/vektra/mockery/[email protected]
- mockery --dir db --name PersistenceManager
- mockery --dir db --name ConnectionManager
- mockery --dir utils --name SegmentReader
- mockery --dir utils --name VideoSegmentCache
- mockery --dir utils --name S3Client
- mockery --dir utils --name Broadcaster
- mockery --dir vod --name PlaylistBuilder
- mockery --dir vod --name SegmentManager
- mockery --dir vod --name PlaylistManager
- mockery --dir api --name RequestResponseClient
- mockery --dir control --name SystemManager
- mockery --dir control --name EdgeRequestClient
- mockery --dir edge --name ControlRequestClient
- mockery --dir edge --name VideoSourceOperator
- mockery --dir forwarder --name SegmentSender
- mockery --dir forwarder --name RecordingSegmentForwarder
- mockery --dir forwarder --name LiveStreamSegmentForwarder
- go fmt $(go list ./...)
- go vet $(go list ./...)
- go test ./...