Skip to content

Commit 8507714

Browse files
committed
CI: add benching-arm64 pipeline
1 parent a82ce5b commit 8507714

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

.drone.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,80 @@ steps:
367367
depends_on:
368368
- build
369369

370+
---
371+
kind: pipeline
372+
name: benching-arm64
373+
374+
platform:
375+
os: linux
376+
arch: arm64
377+
378+
depends_on:
379+
- compliance
380+
381+
trigger:
382+
event:
383+
- push
384+
- tag
385+
- pull_request
386+
387+
services:
388+
- name: pgsql
389+
pull: default
390+
image: postgres:9.5
391+
environment:
392+
POSTGRES_DB: test
393+
POSTGRES_PASSWORD: postgres
394+
395+
- name: ldap
396+
pull: default
397+
image: gitea/test-openldap:latest
398+
399+
steps:
400+
- name: fetch-tags
401+
image: docker:git
402+
commands:
403+
- git fetch --tags --force
404+
when:
405+
event:
406+
exclude:
407+
- pull_request
408+
409+
- name: build
410+
pull: always
411+
image: golang:1.16
412+
commands:
413+
- make backend
414+
environment:
415+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
416+
GOSUMDB: sum.golang.org
417+
TAGS: bindata gogit sqlite sqlite_unlock_notify
418+
419+
- name: bench-sqlite
420+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
421+
commands:
422+
- timeout -s ABRT 40m make bench-sqlite
423+
environment:
424+
GOPROXY: off
425+
TAGS: bindata sqlite sqlite_unlock_notify
426+
TEST_TAGS: sqlite sqlite_unlock_notify
427+
USE_REPO_TEST_DIR: 1
428+
depends_on:
429+
- build
430+
431+
- name: bench-pgsql
432+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
433+
commands:
434+
- timeout -s ABRT 40m make bench-pgsql
435+
environment:
436+
GOPROXY: off
437+
TAGS: bindata gogit
438+
TEST_TAGS: gogit
439+
TEST_LDAP: 1
440+
USE_REPO_TEST_DIR: 1
441+
depends_on:
442+
- build
443+
370444
---
371445
kind: pipeline
372446
name: update_translations
@@ -484,6 +558,7 @@ trigger:
484558
depends_on:
485559
- testing-amd64
486560
- testing-arm64
561+
- benching-arm64
487562

488563
steps:
489564
- name: fetch-tags
@@ -579,6 +654,7 @@ trigger:
579654
depends_on:
580655
- testing-arm64
581656
- testing-amd64
657+
- benching-arm64
582658

583659
steps:
584660
- name: fetch-tags
@@ -692,6 +768,7 @@ platform:
692768
depends_on:
693769
- testing-amd64
694770
- testing-arm64
771+
- benching-arm64
695772

696773
trigger:
697774
ref:
@@ -789,6 +866,7 @@ platform:
789866
depends_on:
790867
- testing-amd64
791868
- testing-arm64
869+
- benching-arm64
792870

793871
trigger:
794872
ref:
@@ -915,6 +993,7 @@ trigger:
915993
depends_on:
916994
- testing-amd64
917995
- testing-arm64
996+
- benching-arm64
918997
- release-version
919998
- release-latest
920999
- docker-linux-amd64-release

0 commit comments

Comments
 (0)