Skip to content

Commit a44b2d0

Browse files
authored
CI: pre install git last verson and git lfs in test (#14681)
link: https://hub.docker.com/r/gitea/test_env Source: https://gitea.com/gitea/test_env/src/branch/master/Dockerfile Signed-off-by: a1012112796 <[email protected]>
1 parent 21be2ae commit a44b2d0

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

.drone.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ steps:
2727

2828
- name: lint-backend
2929
pull: always
30-
image: golang:1.16
30+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
3131
commands:
3232
- make lint-backend
3333
environment:
@@ -37,7 +37,7 @@ steps:
3737

3838
- name: lint-backend-windows
3939
pull: always
40-
image: golang:1.16
40+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
4141
commands:
4242
- make golangci-lint vet
4343
environment:
@@ -49,7 +49,7 @@ steps:
4949

5050
- name: lint-backend-gogit
5151
pull: always
52-
image: golang:1.16
52+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
5353
commands:
5454
- make lint-backend
5555
environment:
@@ -223,10 +223,8 @@ steps:
223223
from_secret: github_read_token
224224

225225
- name: test-mysql
226-
image: golang:1.16
226+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
227227
commands:
228-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
229-
- apt-get install -y git-lfs
230228
- make test-mysql-migration integration-test-coverage
231229
environment:
232230
GOPROXY: off
@@ -238,10 +236,8 @@ steps:
238236
- build
239237

240238
- name: test-mysql8
241-
image: golang:1.16
239+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
242240
commands:
243-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
244-
- apt-get install -y git-lfs
245241
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
246242
environment:
247243
GOPROXY: off
@@ -252,10 +248,8 @@ steps:
252248
- build
253249

254250
- name: test-mssql
255-
image: golang:1.16
251+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
256252
commands:
257-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
258-
- apt-get install -y git-lfs
259253
- make test-mssql-migration test-mssql
260254
environment:
261255
GOPROXY: off
@@ -349,10 +343,8 @@ steps:
349343
TAGS: bindata gogit sqlite sqlite_unlock_notify
350344

351345
- name: test-sqlite
352-
image: golang:1.16
346+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
353347
commands:
354-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
355-
- apt-get install -y git-lfs
356348
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
357349
environment:
358350
GOPROXY: off
@@ -363,10 +355,8 @@ steps:
363355
- build
364356

365357
- name: test-pgsql
366-
image: golang:1.16
358+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
367359
commands:
368-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
369-
- apt-get install -y git-lfs
370360
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
371361
environment:
372362
GOPROXY: off

0 commit comments

Comments
 (0)