summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-04-20 21:13:38 +0200
committerGitHub <noreply@github.com>2020-04-20 15:13:38 -0400
commit50475fff06e08e449470c419c78f3277177b67ce (patch)
tree849f9c307d9fcd67ad66d4c830e0e49bd2d58b90 /.drone.yml
parentcac69903aed8cd86c1a247a149f030cb77846980 (diff)
downloadgitea-50475fff06e08e449470c419c78f3277177b67ce.tar.gz
gitea-50475fff06e08e449470c419c78f3277177b67ce.zip
Skip frontend build where unnecessary (#11159)
The testing pipelines and build-backend steps do not depend on frontend files, skip their build for them.
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml11
1 files changed, 4 insertions, 7 deletions
diff --git a/.drone.yml b/.drone.yml
index 345b9fbc3f..ac8c929181 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -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]
@@ -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:
@@ -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
@@ -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