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 <1012112796@qq.com>release/v1.15
parent
21be2aee1a
commit
a44b2d01d2
26
.drone.yml
26
.drone.yml
|
@ -27,7 +27,7 @@ steps:
|
||||||
|
|
||||||
- name: lint-backend
|
- name: lint-backend
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
|
||||||
commands:
|
commands:
|
||||||
- make lint-backend
|
- make lint-backend
|
||||||
environment:
|
environment:
|
||||||
|
@ -37,7 +37,7 @@ steps:
|
||||||
|
|
||||||
- name: lint-backend-windows
|
- name: lint-backend-windows
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
|
||||||
commands:
|
commands:
|
||||||
- make golangci-lint vet
|
- make golangci-lint vet
|
||||||
environment:
|
environment:
|
||||||
|
@ -49,7 +49,7 @@ steps:
|
||||||
|
|
||||||
- name: lint-backend-gogit
|
- name: lint-backend-gogit
|
||||||
pull: always
|
pull: always
|
||||||
image: golang:1.16
|
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
|
||||||
commands:
|
commands:
|
||||||
- make lint-backend
|
- make lint-backend
|
||||||
environment:
|
environment:
|
||||||
|
@ -223,10 +223,8 @@ steps:
|
||||||
from_secret: github_read_token
|
from_secret: github_read_token
|
||||||
|
|
||||||
- name: test-mysql
|
- name: test-mysql
|
||||||
image: golang:1.16
|
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
|
||||||
- apt-get install -y git-lfs
|
|
||||||
- make test-mysql-migration integration-test-coverage
|
- make test-mysql-migration integration-test-coverage
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: off
|
GOPROXY: off
|
||||||
|
@ -238,10 +236,8 @@ steps:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
- name: test-mysql8
|
- name: test-mysql8
|
||||||
image: golang:1.16
|
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
|
||||||
- apt-get install -y git-lfs
|
|
||||||
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
|
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: off
|
GOPROXY: off
|
||||||
|
@ -252,10 +248,8 @@ steps:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
- name: test-mssql
|
- name: test-mssql
|
||||||
image: golang:1.16
|
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
|
||||||
- apt-get install -y git-lfs
|
|
||||||
- make test-mssql-migration test-mssql
|
- make test-mssql-migration test-mssql
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: off
|
GOPROXY: off
|
||||||
|
@ -349,10 +343,8 @@ steps:
|
||||||
TAGS: bindata gogit sqlite sqlite_unlock_notify
|
TAGS: bindata gogit sqlite sqlite_unlock_notify
|
||||||
|
|
||||||
- name: test-sqlite
|
- name: test-sqlite
|
||||||
image: golang:1.16
|
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
|
||||||
- apt-get install -y git-lfs
|
|
||||||
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
|
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: off
|
GOPROXY: off
|
||||||
|
@ -363,10 +355,8 @@ steps:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
- name: test-pgsql
|
- name: test-pgsql
|
||||||
image: golang:1.16
|
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
|
||||||
commands:
|
commands:
|
||||||
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
|
|
||||||
- apt-get install -y git-lfs
|
|
||||||
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
|
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: off
|
GOPROXY: off
|
||||||
|
|
Loading…
Reference in New Issue