Skip to content

Commit 24aaa2d

Browse files
committed
ci: try re-ordering for optimizing time
1 parent d91127a commit 24aaa2d

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.drone.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ steps:
167167
environment:
168168
GOPROXY: off
169169
TAGS: bindata
170+
depends_on:
171+
- tag-pre-condition
170172
when:
171173
event:
172174
- tag
@@ -188,8 +190,6 @@ steps:
188190
- name: test-mysql
189191
pull: always
190192
image: golang:1.13
191-
depends_on:
192-
- build
193193
commands:
194194
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
195195
- apt-get install -y git-lfs
@@ -199,6 +199,8 @@ steps:
199199
GOPROXY: off
200200
TAGS: bindata
201201
TEST_LDAP: 1
202+
depends_on:
203+
- build
202204
when:
203205
branch:
204206
- master
@@ -209,8 +211,6 @@ steps:
209211
- name: tag-test-mysql
210212
pull: always
211213
image: golang:1.13
212-
depends_on:
213-
- build
214214
commands:
215215
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
216216
- apt-get install -y git-lfs
@@ -220,15 +220,15 @@ steps:
220220
GOPROXY: off
221221
TAGS: bindata
222222
TEST_LDAP: 1
223+
depends_on:
224+
- build
223225
when:
224226
event:
225227
- tag
226228

227229
- name: test-mysql8
228230
pull: always
229231
image: golang:1.13
230-
depends_on:
231-
- build
232232
commands:
233233
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
234234
- apt-get install -y git-lfs
@@ -238,12 +238,12 @@ steps:
238238
GOPROXY: off
239239
TAGS: bindata
240240
TEST_LDAP: 1
241+
depends_on:
242+
- build
241243

242244
- name: test-pgsql
243245
pull: always
244246
image: golang:1.13
245-
depends_on:
246-
- build
247247
commands:
248248
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
249249
- apt-get install -y git-lfs
@@ -253,12 +253,12 @@ steps:
253253
GOPROXY: off
254254
TAGS: bindata
255255
TEST_LDAP: 1
256+
depends_on:
257+
- build
256258

257259
- name: test-mssql
258260
pull: always
259261
image: golang:1.13
260-
depends_on:
261-
- build
262262
commands:
263263
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
264264
- apt-get install -y git-lfs
@@ -268,6 +268,8 @@ steps:
268268
GOPROXY: off
269269
TAGS: bindata
270270
TEST_LDAP: 1
271+
depends_on:
272+
- build
271273

272274
- name: generate-coverage
273275
pull: always
@@ -304,7 +306,7 @@ steps:
304306
event:
305307
- push
306308
- pull_request
307-
309+
308310
---
309311
kind: pipeline
310312
name: translations

0 commit comments

Comments
 (0)