Skip to content

Commit 50475ff

Browse files
authored
Skip frontend build where unnecessary (#11159)
The testing pipelines and build-backend steps do not depend on frontend files, skip their build for them.
1 parent cac6990 commit 50475ff

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.drone.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ steps:
6161
GOARCH: arm64
6262
TAGS: bindata
6363
commands:
64-
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
65-
- make build # test cross compile
64+
- make backend # test cross compile
6665
- rm ./gitea # clean
6766
depends_on: [lint-backend]
6867

@@ -99,7 +98,7 @@ services:
9998
image: mysql:5.7
10099
environment:
101100
MYSQL_ALLOW_EMPTY_PASSWORD: yes
102-
MYSQL_DATABASE: test
101+
MYSQL_DATABASE: test
103102
GOPROXY: off
104103
TAGS: bindata sqlite sqlite_unlock_notify
105104
GITLAB_READ_TOKEN:
@@ -153,8 +152,7 @@ steps:
153152
pull: always
154153
image: golang:1.14
155154
commands:
156-
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
157-
- make build
155+
- make backend
158156
environment:
159157
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
160158
GOSUMDB: sum.golang.org
@@ -300,8 +298,7 @@ steps:
300298
pull: always
301299
image: golang:1.14
302300
commands:
303-
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
304-
- make build
301+
- make backend
305302
environment:
306303
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
307304
GOSUMDB: sum.golang.org

0 commit comments

Comments
 (0)