Skip to content

Commit b08bfb5

Browse files
committed
update drone
1 parent 22aa0ed commit b08bfb5

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.drone.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,10 @@ trigger:
515515
event:
516516
- pull_request
517517

518+
volumes:
519+
- name: deps
520+
temp: {}
521+
518522
services:
519523
- name: pgsql
520524
pull: default
@@ -525,22 +529,33 @@ services:
525529
POSTGRES_INITDB_ARGS: --encoding=UTF8 --lc-collate='en_US.UTF-8' --lc-ctype='en_US.UTF-8'
526530

527531
steps:
528-
- name: tag-pre-condition
532+
- name: deps-frontend
533+
image: node:16
529534
pull: always
530-
image: drone/git
531535
commands:
532-
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
536+
- make deps-frontend
537+
538+
- name: deps-backend
539+
image: golang:1.18
540+
pull: always
541+
commands:
542+
- make deps-backend
543+
volumes:
544+
- name: deps
545+
path: /go
533546

534547
# TODO: We should probably build all dependencies into a test image
535548
- name: test-e2e
536549
image: mcr.microsoft.com/playwright:v1.22.2-focal
537550
commands:
538551
- curl -sL https://go.dev/dl/go1.18.3.linux-amd64.tar.gz -o go1.18.3.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz
539552
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
553+
- apt-get update
554+
- apt-get install build-essential --yes
540555
- ./build/test-env-prepare.sh
541556
- su gitea bash -c "export PATH=$PATH:/usr/local/go/bin && timeout -s ABRT 40m make test-e2e-pgsql"
542557
environment:
543-
GOPROXY: https://goproxy.cn
558+
GOPROXY: https://goproxy.io
544559
GOSUMDB: sum.golang.org
545560
TAGS: bindata
546561
USE_REPO_TEST_DIR: 1
@@ -549,6 +564,10 @@ steps:
549564
TEST_PGSQL_SCHEMA: ''
550565
TEST_PGSQL_DBNAME: 'testgitea-e2e'
551566
NPX_FLAGS: '--yes'
567+
depends_on: [deps-backend, deps-frontend]
568+
volumes:
569+
- name: deps
570+
path: /go
552571

553572
---
554573
kind: pipeline

0 commit comments

Comments
 (0)