forked from uber/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline-master.yml
167 lines (156 loc) · 4.2 KB
/
pipeline-master.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
steps:
- label: "fossa analyze"
agents:
queue: "init"
docker: "*"
command: "./scripts/buildkite/fossa.sh"
- label: ":golang: unit test"
agents:
queue: "workers"
docker: "*"
command: "CASSANDRA_HOST=cassandra make install-schema && make cover_profile" # make install-schema is needed for a server startup test. See main_test.go
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: unit-test
config: docker/buildkite/docker-compose.yml
- label: ":golangci-lint: validate code is clean"
agents:
queue: "workers"
docker: "*"
command: "./scripts/buildkite/golint.sh"
artifact_paths: []
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: unit-test
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration test with cassandra"
agents:
queue: "workers"
docker: "*"
command: "make cover_integration_profile"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: integration-test-cassandra
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration test with cassandra with ElasticSearch V7"
agents:
queue: "workers"
docker: "*"
command: "make cover_integration_profile"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: integration-test-cassandra
config: docker/buildkite/docker-compose-es7.yml
- label: ":golang: integration ndc test with cassandra"
agents:
queue: "workers"
docker: "*"
command: "make cover_ndc_profile"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: integration-test-ndc-cassandra
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration test with mysql"
agents:
queue: "workers"
docker: "*"
command: "make cover_integration_profile"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: integration-test-mysql
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration ndc test with mysql"
agents:
queue: "workers"
docker: "*"
command: "make cover_ndc_profile"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: integration-test-ndc-mysql
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration test with postgres"
agents:
queue: "workers"
docker: "*"
command: "make cover_integration_profile"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: integration-test-postgres
config: docker/buildkite/docker-compose.yml
- label: ":golang: integration ndc test with postgres"
agents:
queue: "workers"
docker: "*"
command: "make cover_ndc_profile"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.0.0:
run: integration-test-ndc-postgres
config: docker/buildkite/docker-compose.yml
- wait
- label: ":golang: code-coverage"
agents:
queue: "workers"
docker: "*"
command: "scripts/buildkite/gocov.sh"
retry:
automatic:
limit: 2
plugins:
- docker-compose#v3.0.0:
run: coverage-report
config: docker/buildkite/docker-compose.yml
- label: ":docker: build and push master"
agents:
queue: "workers"
docker: "*"
command: "scripts/buildkite/docker-push.sh"
retry:
automatic:
limit: 1
plugins:
- docker-login#v2.0.1:
username: ubercadence
password-env: DOCKER_LOGIN_PASSWORD