diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2020-01-15 05:33:54 +0100 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2020-01-14 23:33:54 -0500 |
commit | 203e063846f7d79860b702e9776b15fef6c6266a (patch) | |
tree | 57806c94d751cb9e1b401560001e7d1cd026c23d /.drone.yml | |
parent | 324672106bfd775d61eb7d8baabe63ed45393e53 (diff) | |
download | gitea-203e063846f7d79860b702e9776b15fef6c6266a.tar.gz gitea-203e063846f7d79860b702e9776b15fef6c6266a.zip |
ci: move some integration tests on arm64 (#9747)
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 128 |
1 files changed, 87 insertions, 41 deletions
diff --git a/.drone.yml b/.drone.yml index 7477762302..2a1e33c077 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,7 +55,7 @@ steps: --- kind: pipeline -name: testing +name: testing-amd64 platform: os: linux @@ -80,12 +80,6 @@ services: MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_DATABASE: testgitea - - name: pgsql - pull: default - image: postgres:9.5 - environment: - POSTGRES_DB: test - - name: mssql pull: default image: mcr.microsoft.com/mssql/server:latest @@ -175,20 +169,6 @@ steps: event: - tag - - name: test-sqlite - pull: always - image: golang:1.13 - commands: - - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" - - apt-get install -y git-lfs - - timeout -s ABRT 20m make test-sqlite-migration - - timeout -s ABRT 20m make test-sqlite - environment: - GOPROXY: off - TAGS: bindata - depends_on: - - build - - name: test-mysql pull: always image: golang:1.13 @@ -243,21 +223,6 @@ steps: depends_on: - build - - name: test-pgsql - pull: always - image: golang:1.13 - commands: - - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" - - apt-get install -y git-lfs - - timeout -s ABRT 20m make test-pgsql-migration - - timeout -s ABRT 20m make test-pgsql - environment: - GOPROXY: off - TAGS: bindata - TEST_LDAP: 1 - depends_on: - - build - - name: test-mssql pull: always image: golang:1.13 @@ -309,6 +274,82 @@ steps: - push - pull_request + + +--- +kind: pipeline +name: testing-arm64 + +platform: + os: linux + arch: arm64 + +workspace: + base: /go + path: src/code.gitea.io/gitea + +services: + - name: pgsql + pull: default + image: postgres:9.5 + environment: + POSTGRES_DB: test + + - name: ldap + pull: default + image: gitea/test-openldap:latest + +steps: + - name: fetch-tags + pull: default + image: docker:git + commands: + - git fetch --tags --force + when: + event: + exclude: + - pull_request + + - name: build + pull: always + image: golang:1.13 + commands: + - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs + - make build + environment: + GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not + GOSUMDB: sum.golang.org + TAGS: bindata sqlite sqlite_unlock_notify + + - name: test-sqlite + pull: always + image: golang:1.13 + commands: + - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" + - apt-get install -y git-lfs + - timeout -s ABRT 20m make test-sqlite-migration + - timeout -s ABRT 20m make test-sqlite + environment: + GOPROXY: off + TAGS: bindata + depends_on: + - build + + - name: test-pgsql + pull: always + image: golang:1.13 + commands: + - "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash" + - apt-get install -y git-lfs + - timeout -s ABRT 20m make test-pgsql-migration + - timeout -s ABRT 20m make test-pgsql + environment: + GOPROXY: off + TAGS: bindata + TEST_LDAP: 1 + depends_on: + - build + --- kind: pipeline name: translations @@ -394,7 +435,8 @@ trigger: - push depends_on: - - testing + - testing-amd64 + - testing-arm64 - translations steps: @@ -492,7 +534,8 @@ trigger: - tag depends_on: - - testing + - testing-arm64 + - testing-amd64 steps: - name: fetch-tags @@ -605,7 +648,8 @@ workspace: path: src/code.gitea.io/gitea depends_on: - - testing + - testing-amd64 + - testing-arm64 trigger: ref: @@ -683,7 +727,8 @@ workspace: path: src/code.gitea.io/gitea depends_on: - - testing + - testing-amd64 + - testing-arm64 trigger: ref: @@ -767,7 +812,8 @@ trigger: - failure depends_on: - - testing + - testing-amd64 + - testing-arm64 - translations - release-version - release-master |