Skip to content

Commit

Permalink
update drone
Browse files Browse the repository at this point in the history
  • Loading branch information
kdumontnu committed Jun 23, 2022
1 parent 22aa0ed commit b08bfb5
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ trigger:
event:
- pull_request

volumes:
- name: deps
temp: {}

services:
- name: pgsql
pull: default
Expand All @@ -525,22 +529,33 @@ services:
POSTGRES_INITDB_ARGS: --encoding=UTF8 --lc-collate='en_US.UTF-8' --lc-ctype='en_US.UTF-8'

steps:
- name: tag-pre-condition
- name: deps-frontend
image: node:16
pull: always
image: drone/git
commands:
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
- make deps-frontend

- name: deps-backend
image: golang:1.18
pull: always
commands:
- make deps-backend
volumes:
- name: deps
path: /go

# TODO: We should probably build all dependencies into a test image
- name: test-e2e
image: mcr.microsoft.com/playwright:v1.22.2-focal
commands:
- 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
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
- apt-get update
- apt-get install build-essential --yes
- ./build/test-env-prepare.sh
- su gitea bash -c "export PATH=$PATH:/usr/local/go/bin && timeout -s ABRT 40m make test-e2e-pgsql"
environment:
GOPROXY: https://goproxy.cn
GOPROXY: https://goproxy.io
GOSUMDB: sum.golang.org
TAGS: bindata
USE_REPO_TEST_DIR: 1
Expand All @@ -549,6 +564,10 @@ steps:
TEST_PGSQL_SCHEMA: ''
TEST_PGSQL_DBNAME: 'testgitea-e2e'
NPX_FLAGS: '--yes'
depends_on: [deps-backend, deps-frontend]
volumes:
- name: deps
path: /go

---
kind: pipeline
Expand Down

0 comments on commit b08bfb5

Please sign in to comment.