Skip to content

Commit 53d6e3b

Browse files
committed
Clean up
1 parent c8f467a commit 53d6e3b

File tree

1 file changed

+29
-17
lines changed

1 file changed

+29
-17
lines changed

.drone.yml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
kind: pipeline
3+
type: docker
34
name: compliance
45

56
platform:
@@ -130,6 +131,7 @@ steps:
130131

131132
---
132133
kind: pipeline
134+
type: docker
133135
name: testing-amd64
134136

135137
platform:
@@ -191,16 +193,6 @@ steps:
191193
exclude:
192194
- pull_request
193195

194-
- name: build
195-
pull: always
196-
image: golang:1.17
197-
commands:
198-
- make backend
199-
environment:
200-
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
201-
GOSUMDB: sum.golang.org
202-
TAGS: bindata sqlite sqlite_unlock_notify
203-
204196
- name: tag-pre-condition
205197
pull: always
206198
image: drone/git
@@ -212,11 +204,24 @@ steps:
212204
commands:
213205
- ./build/test-env-prepare.sh
214206

207+
- name: build
208+
pull: always
209+
image: golang:1.17
210+
user: gitea
211+
commands:
212+
- ./build/test-env-check.sh
213+
- make backend
214+
environment:
215+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
216+
GOSUMDB: sum.golang.org
217+
TAGS: bindata sqlite sqlite_unlock_notify
218+
depends_on:
219+
- prepare-test-env
220+
215221
- name: unit-test
216222
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
217223
user: gitea
218224
commands:
219-
- ./build/test-env-check.sh
220225
- make unit-test-coverage test-check
221226
environment:
222227
GOPROXY: off
@@ -230,7 +235,6 @@ steps:
230235
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
231236
user: gitea
232237
commands:
233-
- ./build/test-env-check.sh
234238
- make unit-test-coverage test-check
235239
environment:
236240
GOPROXY: off
@@ -243,7 +247,6 @@ steps:
243247
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
244248
user: gitea
245249
commands:
246-
- ./build/test-env-check.sh
247250
- make test-mysql-migration integration-test-coverage
248251
environment:
249252
GOPROXY: off
@@ -259,7 +262,6 @@ steps:
259262
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
260263
user: gitea
261264
commands:
262-
- ./build/test-env-check.sh
263265
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
264266
environment:
265267
GOPROXY: off
@@ -274,7 +276,6 @@ steps:
274276
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
275277
user: gitea
276278
commands:
277-
- ./build/test-env-check.sh
278279
- make test-mssql-migration test-mssql
279280
environment:
280281
GOPROXY: off
@@ -374,12 +375,13 @@ steps:
374375
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
375376
GOSUMDB: sum.golang.org
376377
TAGS: bindata gogit sqlite sqlite_unlock_notify
378+
depends_on:
379+
- prepare-test-env
377380

378381
- name: test-sqlite
379382
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
380383
user: gitea
381384
commands:
382-
- ./build/test-env-check.sh
383385
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
384386
environment:
385387
GOPROXY: off
@@ -394,7 +396,6 @@ steps:
394396
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
395397
user: gitea
396398
commands:
397-
- ./build/test-env-check.sh
398399
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
399400
environment:
400401
GOPROXY: off
@@ -469,6 +470,7 @@ steps:
469470

470471
---
471472
kind: pipeline
473+
type: docker
472474
name: update_gitignore_and_licenses
473475

474476
platform:
@@ -505,6 +507,7 @@ steps:
505507

506508
---
507509
kind: pipeline
510+
type: docker
508511
name: release-latest
509512

510513
platform:
@@ -683,6 +686,7 @@ steps:
683686

684687
---
685688
kind: pipeline
689+
type: docker
686690
name: docs
687691

688692
platform:
@@ -724,6 +728,7 @@ steps:
724728

725729
---
726730
kind: pipeline
731+
type: docker
727732
name: docker-linux-amd64-release-version
728733

729734
platform:
@@ -788,6 +793,7 @@ steps:
788793

789794
---
790795
kind: pipeline
796+
type: docker
791797
name: docker-linux-amd64-release
792798

793799
platform:
@@ -852,6 +858,7 @@ steps:
852858

853859
---
854860
kind: pipeline
861+
type: docker
855862
name: docker-linux-arm64-dry-run
856863

857864
platform:
@@ -884,6 +891,7 @@ steps:
884891

885892
---
886893
kind: pipeline
894+
type: docker
887895
name: docker-linux-arm64-release-version
888896

889897
platform:
@@ -951,6 +959,7 @@ steps:
951959

952960
---
953961
kind: pipeline
962+
type: docker
954963
name: docker-linux-arm64-release
955964

956965
platform:
@@ -1017,6 +1026,7 @@ steps:
10171026
- pull_request
10181027
---
10191028
kind: pipeline
1029+
type: docker
10201030
name: docker-manifest-version
10211031

10221032
platform:
@@ -1060,6 +1070,7 @@ depends_on:
10601070

10611071
---
10621072
kind: pipeline
1073+
type: docker
10631074
name: docker-manifest
10641075

10651076
platform:
@@ -1103,6 +1114,7 @@ depends_on:
11031114

11041115
---
11051116
kind: pipeline
1117+
type: docker
11061118
name: notifications
11071119

11081120
platform:

0 commit comments

Comments
 (0)