Browse Source

Skip frontend build where unnecessary (#11159)

The testing pipelines and build-backend steps do not depend on
frontend files, skip their build for them.
tags/v1.13.0-dev
silverwind 4 years ago
parent
commit
50475fff06
No account linked to committer's email address
1 changed files with 4 additions and 7 deletions
  1. 4
    7
      .drone.yml

+ 4
- 7
.drone.yml View File

GOARCH: arm64 GOARCH: arm64
TAGS: bindata TAGS: bindata
commands: commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make build # test cross compile
- make backend # test cross compile
- rm ./gitea # clean - rm ./gitea # clean
depends_on: [lint-backend] depends_on: [lint-backend]


image: mysql:5.7 image: mysql:5.7
environment: environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: test
MYSQL_DATABASE: test
GOPROXY: off GOPROXY: off
TAGS: bindata sqlite sqlite_unlock_notify TAGS: bindata sqlite sqlite_unlock_notify
GITLAB_READ_TOKEN: GITLAB_READ_TOKEN:
pull: always pull: always
image: golang:1.14 image: golang:1.14
commands: commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make build
- make backend
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org
pull: always pull: always
image: golang:1.14 image: golang:1.14
commands: commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make build
- make backend
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org

Loading…
Cancel
Save