Skip to content

Commit

Permalink
Skip frontend build where unnecessary (#11159)
Browse files Browse the repository at this point in the history
The testing pipelines and build-backend steps do not depend on
frontend files, skip their build for them.
  • Loading branch information
silverwind committed Apr 20, 2020
1 parent cac6990 commit 50475ff
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ steps:
GOARCH: arm64
TAGS: bindata
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
depends_on: [lint-backend]

Expand Down Expand Up @@ -99,7 +98,7 @@ services:
image: mysql:5.7
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: test
MYSQL_DATABASE: test
GOPROXY: off
TAGS: bindata sqlite sqlite_unlock_notify
GITLAB_READ_TOKEN:
Expand Down Expand Up @@ -153,8 +152,7 @@ steps:
pull: always
image: golang:1.14
commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make build
- make backend
environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org
Expand Down Expand Up @@ -300,8 +298,7 @@ steps:
pull: always
image: golang:1.14
commands:
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
- make build
- make backend
environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org
Expand Down

0 comments on commit 50475ff

Please sign in to comment.