forked from haproxytech/dataplaneapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
76 lines (72 loc) · 1.35 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
stages:
- lint
- build
- e2e
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_BASE_IMAGE: $CI_REGISTRY_GO/haproxy-alpine
golangci-lint:
stage: lint
artifacts:
paths:
- build
image:
name: $CI_REGISTRY_GO/golangci/golangci-lint:v1.21.0
entrypoint: [ "" ]
tags:
- go
script:
- golangci-lint run -v --color always --timeout 120s
lint-commit-msg:
stage: lint
image:
name: $CI_REGISTRY_GO/check-commit:latest
entrypoint: [""]
tags:
- go
script:
- go run /check.go
build:
stage: build
artifacts:
paths:
- build
image:
name: $CI_REGISTRY_GO/golang:1.15
entrypoint: [ "" ]
tags:
- go
script:
- go env
- go mod verify
- make build
.e2e:
stage: e2e
image:
name: $CI_REGISTRY_GO/docker:stable
entrypoint: [ "" ]
services:
- name: $CI_REGISTRY_GO/docker:18.09.7-dind
alias: docker
tags:
- go
before_script:
- apk add git bash curl jq bats
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY_GO
script:
- bash -x ./e2e/run.bash
HAProxy_2_1:
extends: .e2e
variables:
LOCAL_IP_ADDRESS: docker
HAPROXY_VERSION: "2.1"
HAProxy_2_2:
extends: .e2e
variables:
LOCAL_IP_ADDRESS: docker
HAPROXY_VERSION: "2.2"
HAProxy_2_3:
extends: .e2e
variables:
LOCAL_IP_ADDRESS: docker
HAPROXY_VERSION: "2.3"