Skip to content

Commit 1132cb2

Browse files
committed
Merge remote-tracking branch 'origin/master' into queues-notification
2 parents a7ad2ab + ab69b9b commit 1132cb2

File tree

2,693 files changed

+338711
-318227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,693 files changed

+338711
-318227
lines changed

.drone.yml

Lines changed: 92 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,71 @@ workspace:
1111
path: src/code.gitea.io/gitea
1212

1313
steps:
14-
- name: pre-build
14+
- name: deps-frontend
15+
pull: always
16+
image: node:12
17+
commands:
18+
- make node_modules
19+
20+
- name: lint-frontend
21+
pull: always
22+
image: node:12
23+
commands:
24+
- make lint-frontend
25+
depends_on: [deps-frontend]
26+
27+
- name: lint-backend
28+
pull: always
29+
image: golang:1.14
30+
commands:
31+
- make lint-backend
32+
environment:
33+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
34+
GOSUMDB: sum.golang.org
35+
TAGS: bindata sqlite sqlite_unlock_notify
36+
37+
- name: build-frontend
1538
pull: always
1639
image: node:10 # this step is kept at the lowest version of node that we support
1740
commands:
18-
- make webpack
41+
- make frontend
42+
depends_on: [lint-frontend]
1943

20-
- name: build-without-gcc
44+
- name: build-backend-no-gcc
2145
pull: always
22-
image: golang:1.11 # this step is kept as the lowest version of golang that we support
46+
image: golang:1.12 # this step is kept as the lowest version of golang that we support
2347
environment:
2448
GO111MODULE: on
2549
GOPROXY: off
2650
commands:
2751
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
52+
depends_on: [lint-backend]
2853

29-
- name: build-linux-386
54+
- name: build-backend-arm64
3055
pull: always
31-
image: golang:1.13
56+
image: golang:1.14
3257
environment:
3358
GO111MODULE: on
3459
GOPROXY: off
3560
GOOS: linux
36-
GOARCH: 386
61+
GOARCH: arm64
62+
TAGS: bindata
3763
commands:
38-
- go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
64+
- make backend # test cross compile
65+
- rm ./gitea # clean
66+
depends_on: [lint-backend]
3967

40-
- name: check
68+
- name: build-backend-386
4169
pull: always
42-
image: golang:1.13
43-
commands:
44-
- make clean golangci-lint revive swagger-check swagger-validate test-vendor
70+
image: golang:1.14
4571
environment:
46-
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
47-
GOSUMDB: sum.golang.org
48-
TAGS: bindata sqlite sqlite_unlock_notify
72+
GO111MODULE: on
73+
GOPROXY: off
74+
GOOS: linux
75+
GOARCH: 386
76+
commands:
77+
- go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
78+
depends_on: [lint-backend]
4979

5080
---
5181
kind: pipeline
@@ -55,6 +85,9 @@ platform:
5585
os: linux
5686
arch: amd64
5787

88+
depends_on:
89+
- compliance
90+
5891
workspace:
5992
base: /go
6093
path: src/code.gitea.io/gitea
@@ -66,6 +99,18 @@ services:
6699
environment:
67100
MYSQL_ALLOW_EMPTY_PASSWORD: yes
68101
MYSQL_DATABASE: test
102+
GOPROXY: off
103+
TAGS: bindata sqlite sqlite_unlock_notify
104+
GITLAB_READ_TOKEN:
105+
from_secret: gitlab_read_token
106+
depends_on:
107+
- build
108+
when:
109+
branch:
110+
- master
111+
event:
112+
- push
113+
- pull_request
69114

70115
- name: mysql8
71116
pull: default
@@ -105,10 +150,9 @@ steps:
105150

106151
- name: build
107152
pull: always
108-
image: golang:1.13
153+
image: golang:1.14
109154
commands:
110-
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
111-
- make build
155+
- make backend
112156
environment:
113157
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
114158
GOSUMDB: sum.golang.org
@@ -122,7 +166,7 @@ steps:
122166

123167
- name: unit-test
124168
pull: always
125-
image: golang:1.13
169+
image: golang:1.14
126170
commands:
127171
- make unit-test-coverage test-check
128172
environment:
@@ -133,7 +177,7 @@ steps:
133177

134178
- name: test-mysql
135179
pull: always
136-
image: golang:1.13
180+
image: golang:1.14
137181
commands:
138182
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
139183
- apt-get install -y git-lfs
@@ -142,12 +186,13 @@ steps:
142186
GOPROXY: off
143187
TAGS: bindata
144188
TEST_LDAP: 1
189+
USE_REPO_TEST_DIR: 1
145190
depends_on:
146191
- build
147192

148193
- name: test-mysql8
149194
pull: always
150-
image: golang:1.13
195+
image: golang:1.14
151196
commands:
152197
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
153198
- apt-get install -y git-lfs
@@ -156,12 +201,13 @@ steps:
156201
GOPROXY: off
157202
TAGS: bindata
158203
TEST_LDAP: 1
204+
USE_REPO_TEST_DIR: 1
159205
depends_on:
160206
- build
161207

162208
- name: test-mssql
163209
pull: always
164-
image: golang:1.13
210+
image: golang:1.14
165211
commands:
166212
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
167213
- apt-get install -y git-lfs
@@ -170,12 +216,13 @@ steps:
170216
GOPROXY: off
171217
TAGS: bindata
172218
TEST_LDAP: 1
219+
USE_REPO_TEST_DIR: 1
173220
depends_on:
174221
- build
175222

176223
- name: generate-coverage
177224
pull: always
178-
image: golang:1.13
225+
image: golang:1.14
179226
commands:
180227
- make coverage
181228
environment:
@@ -209,8 +256,6 @@ steps:
209256
- push
210257
- pull_request
211258

212-
213-
214259
---
215260
kind: pipeline
216261
name: testing-arm64
@@ -219,6 +264,9 @@ platform:
219264
os: linux
220265
arch: arm64
221266

267+
depends_on:
268+
- compliance
269+
222270
workspace:
223271
base: /go
224272
path: src/code.gitea.io/gitea
@@ -248,31 +296,31 @@ steps:
248296

249297
- name: build
250298
pull: always
251-
image: golang:1.13
299+
image: golang:1.14
252300
commands:
253-
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
254-
- make build
301+
- make backend
255302
environment:
256303
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
257304
GOSUMDB: sum.golang.org
258305
TAGS: bindata sqlite sqlite_unlock_notify
259306

260307
- name: test-sqlite
261308
pull: always
262-
image: golang:1.13
309+
image: golang:1.14
263310
commands:
264311
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
265312
- apt-get install -y git-lfs
266313
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
267314
environment:
268315
GOPROXY: off
269316
TAGS: bindata
317+
USE_REPO_TEST_DIR: 1
270318
depends_on:
271319
- build
272320

273321
- name: test-pgsql
274322
pull: always
275-
image: golang:1.13
323+
image: golang:1.14
276324
commands:
277325
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
278326
- apt-get install -y git-lfs
@@ -281,6 +329,7 @@ steps:
281329
GOPROXY: off
282330
TAGS: bindata
283331
TEST_LDAP: 1
332+
USE_REPO_TEST_DIR: 1
284333
depends_on:
285334
- build
286335

@@ -319,7 +368,7 @@ steps:
319368
pull: default
320369
image: alpine:3.11
321370
commands:
322-
- ./scripts/update-locales.sh
371+
- ./build/update-locales.sh
323372

324373
- name: push
325374
pull: always
@@ -348,7 +397,7 @@ steps:
348397

349398
---
350399
kind: pipeline
351-
name: release-master
400+
name: release-latest
352401

353402
platform:
354403
os: linux
@@ -379,14 +428,14 @@ steps:
379428

380429
- name: static
381430
pull: always
382-
image: techknowlogick/xgo:latest
431+
image: techknowlogick/xgo:go-1.14.x
383432
commands:
384433
- apt update && apt -y install curl
385434
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
386435
- export PATH=$PATH:$GOPATH/bin
387436
- make release
388437
environment:
389-
GOPROXY: off
438+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
390439
TAGS: bindata sqlite sqlite_unlock_notify
391440

392441
- name: gpg-sign
@@ -404,7 +453,7 @@ steps:
404453
GPGSIGN_PASSPHRASE:
405454
from_secret: gpgsign_passphrase
406455

407-
- name: release-branch-release
456+
- name: release-branch
408457
pull: always
409458
image: plugins/s3:1
410459
settings:
@@ -426,7 +475,7 @@ steps:
426475
event:
427476
- push
428477

429-
- name: release
478+
- name: release-master
430479
pull: always
431480
image: plugins/s3:1
432481
settings:
@@ -477,14 +526,14 @@ steps:
477526

478527
- name: static
479528
pull: always
480-
image: techknowlogick/xgo:latest
529+
image: techknowlogick/xgo:go-1.14.x
481530
commands:
482531
- apt update && apt -y install curl
483532
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
484533
- export PATH=$PATH:$GOPATH/bin
485534
- make release
486535
environment:
487-
GOPROXY: off
536+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
488537
TAGS: bindata sqlite sqlite_unlock_notify
489538

490539
- name: gpg-sign
@@ -502,7 +551,7 @@ steps:
502551
GPGSIGN_PASSPHRASE:
503552
from_secret: gpgsign_passphrase
504553

505-
- name: release
554+
- name: release-tag
506555
pull: always
507556
image: plugins/s3:1
508557
settings:
@@ -537,6 +586,9 @@ platform:
537586
os: linux
538587
arch: arm64
539588

589+
depends_on:
590+
- compliance
591+
540592
steps:
541593
- name: build-docs
542594
pull: always
@@ -742,7 +794,7 @@ depends_on:
742794
- testing-arm64
743795
- translations
744796
- release-version
745-
- release-master
797+
- release-latest
746798
- docker-linux-amd64-release
747799
- docker-linux-arm64-release
748800
- docker-manifest

0 commit comments

Comments
 (0)