Skip to content

Commit 203e063

Browse files
sapktechknowlogick
authored andcommitted
ci: move some integration tests on arm64 (#9747)
1 parent 3246721 commit 203e063

File tree

1 file changed

+87
-41
lines changed

1 file changed

+87
-41
lines changed

.drone.yml

Lines changed: 87 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ steps:
5555

5656
---
5757
kind: pipeline
58-
name: testing
58+
name: testing-amd64
5959

6060
platform:
6161
os: linux
@@ -80,12 +80,6 @@ services:
8080
MYSQL_ALLOW_EMPTY_PASSWORD: yes
8181
MYSQL_DATABASE: testgitea
8282

83-
- name: pgsql
84-
pull: default
85-
image: postgres:9.5
86-
environment:
87-
POSTGRES_DB: test
88-
8983
- name: mssql
9084
pull: default
9185
image: mcr.microsoft.com/mssql/server:latest
@@ -175,20 +169,6 @@ steps:
175169
event:
176170
- tag
177171

178-
- name: test-sqlite
179-
pull: always
180-
image: golang:1.13
181-
commands:
182-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
183-
- apt-get install -y git-lfs
184-
- timeout -s ABRT 20m make test-sqlite-migration
185-
- timeout -s ABRT 20m make test-sqlite
186-
environment:
187-
GOPROXY: off
188-
TAGS: bindata
189-
depends_on:
190-
- build
191-
192172
- name: test-mysql
193173
pull: always
194174
image: golang:1.13
@@ -243,21 +223,6 @@ steps:
243223
depends_on:
244224
- build
245225

246-
- name: test-pgsql
247-
pull: always
248-
image: golang:1.13
249-
commands:
250-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
251-
- apt-get install -y git-lfs
252-
- timeout -s ABRT 20m make test-pgsql-migration
253-
- timeout -s ABRT 20m make test-pgsql
254-
environment:
255-
GOPROXY: off
256-
TAGS: bindata
257-
TEST_LDAP: 1
258-
depends_on:
259-
- build
260-
261226
- name: test-mssql
262227
pull: always
263228
image: golang:1.13
@@ -309,6 +274,82 @@ steps:
309274
- push
310275
- pull_request
311276

277+
278+
279+
---
280+
kind: pipeline
281+
name: testing-arm64
282+
283+
platform:
284+
os: linux
285+
arch: arm64
286+
287+
workspace:
288+
base: /go
289+
path: src/code.gitea.io/gitea
290+
291+
services:
292+
- name: pgsql
293+
pull: default
294+
image: postgres:9.5
295+
environment:
296+
POSTGRES_DB: test
297+
298+
- name: ldap
299+
pull: default
300+
image: gitea/test-openldap:latest
301+
302+
steps:
303+
- name: fetch-tags
304+
pull: default
305+
image: docker:git
306+
commands:
307+
- git fetch --tags --force
308+
when:
309+
event:
310+
exclude:
311+
- pull_request
312+
313+
- name: build
314+
pull: always
315+
image: golang:1.13
316+
commands:
317+
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
318+
- make build
319+
environment:
320+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
321+
GOSUMDB: sum.golang.org
322+
TAGS: bindata sqlite sqlite_unlock_notify
323+
324+
- name: test-sqlite
325+
pull: always
326+
image: golang:1.13
327+
commands:
328+
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
329+
- apt-get install -y git-lfs
330+
- timeout -s ABRT 20m make test-sqlite-migration
331+
- timeout -s ABRT 20m make test-sqlite
332+
environment:
333+
GOPROXY: off
334+
TAGS: bindata
335+
depends_on:
336+
- build
337+
338+
- name: test-pgsql
339+
pull: always
340+
image: golang:1.13
341+
commands:
342+
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
343+
- apt-get install -y git-lfs
344+
- timeout -s ABRT 20m make test-pgsql-migration
345+
- timeout -s ABRT 20m make test-pgsql
346+
environment:
347+
GOPROXY: off
348+
TAGS: bindata
349+
TEST_LDAP: 1
350+
depends_on:
351+
- build
352+
312353
---
313354
kind: pipeline
314355
name: translations
@@ -394,7 +435,8 @@ trigger:
394435
- push
395436

396437
depends_on:
397-
- testing
438+
- testing-amd64
439+
- testing-arm64
398440
- translations
399441

400442
steps:
@@ -492,7 +534,8 @@ trigger:
492534
- tag
493535

494536
depends_on:
495-
- testing
537+
- testing-arm64
538+
- testing-amd64
496539

497540
steps:
498541
- name: fetch-tags
@@ -605,7 +648,8 @@ workspace:
605648
path: src/code.gitea.io/gitea
606649

607650
depends_on:
608-
- testing
651+
- testing-amd64
652+
- testing-arm64
609653

610654
trigger:
611655
ref:
@@ -683,7 +727,8 @@ workspace:
683727
path: src/code.gitea.io/gitea
684728

685729
depends_on:
686-
- testing
730+
- testing-amd64
731+
- testing-arm64
687732

688733
trigger:
689734
ref:
@@ -767,7 +812,8 @@ trigger:
767812
- failure
768813

769814
depends_on:
770-
- testing
815+
- testing-amd64
816+
- testing-arm64
771817
- translations
772818
- release-version
773819
- release-master

0 commit comments

Comments
 (0)