Skip to content

Commit c60de5d

Browse files
committed
ci: try offloading mysql8 to arm64
1 parent 24aaa2d commit c60de5d

File tree

1 file changed

+58
-22
lines changed

1 file changed

+58
-22
lines changed

.drone.yml

+58-22
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ services:
7373
MYSQL_ALLOW_EMPTY_PASSWORD: yes
7474
MYSQL_DATABASE: test
7575

76-
- name: mysql8
77-
pull: default
78-
image: mysql:8.0
79-
environment:
80-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
81-
MYSQL_DATABASE: testgitea
82-
8376
- name: pgsql
8477
pull: default
8578
image: postgres:9.5
@@ -226,21 +219,6 @@ steps:
226219
event:
227220
- tag
228221

229-
- name: test-mysql8
230-
pull: always
231-
image: golang:1.13
232-
commands:
233-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
234-
- apt-get install -y git-lfs
235-
- timeout -s ABRT 20m make test-mysql8-migration
236-
- timeout -s ABRT 20m make test-mysql8
237-
environment:
238-
GOPROXY: off
239-
TAGS: bindata
240-
TEST_LDAP: 1
241-
depends_on:
242-
- build
243-
244222
- name: test-pgsql
245223
pull: always
246224
image: golang:1.13
@@ -307,6 +285,64 @@ steps:
307285
- push
308286
- pull_request
309287

288+
289+
---
290+
kind: pipeline
291+
name: testing-mysql8-arm64
292+
293+
platform:
294+
os: linux
295+
arch: arm64
296+
297+
workspace:
298+
base: /go
299+
path: src/code.gitea.io/gitea
300+
301+
services:
302+
- name: mysql8
303+
pull: default
304+
image: mysql:8.0
305+
environment:
306+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
307+
MYSQL_DATABASE: testgitea
308+
309+
steps:
310+
- name: fetch-tags
311+
pull: default
312+
image: docker:git
313+
commands:
314+
- git fetch --tags --force
315+
when:
316+
event:
317+
exclude:
318+
- pull_request
319+
320+
- name: build
321+
pull: always
322+
image: golang:1.13
323+
commands:
324+
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
325+
- make build
326+
environment:
327+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
328+
GOSUMDB: sum.golang.org
329+
TAGS: bindata
330+
331+
- name: test-mysql8
332+
pull: always
333+
image: golang:1.13
334+
commands:
335+
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
336+
- apt-get install -y git-lfs
337+
- timeout -s ABRT 20m make test-mysql8-migration
338+
- timeout -s ABRT 20m make test-mysql8
339+
environment:
340+
GOPROXY: off
341+
TAGS: bindata
342+
TEST_LDAP: 0
343+
depends_on:
344+
- build
345+
310346
---
311347
kind: pipeline
312348
name: translations

0 commit comments

Comments
 (0)