@@ -11,41 +11,71 @@ workspace:
11
11
path : src/code.gitea.io/gitea
12
12
13
13
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
15
38
pull : always
16
39
image : node:10 # this step is kept at the lowest version of node that we support
17
40
commands :
18
- - make webpack
41
+ - make frontend
42
+ depends_on : [lint-frontend]
19
43
20
- - name : build-without -gcc
44
+ - name : build-backend-no -gcc
21
45
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
23
47
environment :
24
48
GO111MODULE : on
25
49
GOPROXY : off
26
50
commands :
27
51
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
52
+ depends_on : [lint-backend]
28
53
29
- - name : build-linux-386
54
+ - name : build-backend-arm64
30
55
pull : always
31
- image : golang:1.13
56
+ image : golang:1.14
32
57
environment :
33
58
GO111MODULE : on
34
59
GOPROXY : off
35
60
GOOS : linux
36
- GOARCH : 386
61
+ GOARCH : arm64
62
+ TAGS : bindata
37
63
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]
39
67
40
- - name : check
68
+ - name : build-backend-386
41
69
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
45
71
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]
49
79
50
80
---
51
81
kind : pipeline
@@ -55,6 +85,9 @@ platform:
55
85
os : linux
56
86
arch : amd64
57
87
88
+ depends_on :
89
+ - compliance
90
+
58
91
workspace :
59
92
base : /go
60
93
path : src/code.gitea.io/gitea
@@ -66,6 +99,18 @@ services:
66
99
environment :
67
100
MYSQL_ALLOW_EMPTY_PASSWORD : yes
68
101
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
69
114
70
115
- name : mysql8
71
116
pull : default
@@ -105,10 +150,9 @@ steps:
105
150
106
151
- name : build
107
152
pull : always
108
- image : golang:1.13
153
+ image : golang:1.14
109
154
commands :
110
- - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
111
- - make build
155
+ - make backend
112
156
environment :
113
157
GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
114
158
GOSUMDB : sum.golang.org
@@ -122,7 +166,7 @@ steps:
122
166
123
167
- name : unit-test
124
168
pull : always
125
- image : golang:1.13
169
+ image : golang:1.14
126
170
commands :
127
171
- make unit-test-coverage test-check
128
172
environment :
@@ -133,7 +177,7 @@ steps:
133
177
134
178
- name : test-mysql
135
179
pull : always
136
- image : golang:1.13
180
+ image : golang:1.14
137
181
commands :
138
182
- " curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
139
183
- apt-get install -y git-lfs
@@ -142,12 +186,13 @@ steps:
142
186
GOPROXY : off
143
187
TAGS : bindata
144
188
TEST_LDAP : 1
189
+ USE_REPO_TEST_DIR : 1
145
190
depends_on :
146
191
- build
147
192
148
193
- name : test-mysql8
149
194
pull : always
150
- image : golang:1.13
195
+ image : golang:1.14
151
196
commands :
152
197
- " curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
153
198
- apt-get install -y git-lfs
@@ -156,12 +201,13 @@ steps:
156
201
GOPROXY : off
157
202
TAGS : bindata
158
203
TEST_LDAP : 1
204
+ USE_REPO_TEST_DIR : 1
159
205
depends_on :
160
206
- build
161
207
162
208
- name : test-mssql
163
209
pull : always
164
- image : golang:1.13
210
+ image : golang:1.14
165
211
commands :
166
212
- " curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
167
213
- apt-get install -y git-lfs
@@ -170,12 +216,13 @@ steps:
170
216
GOPROXY : off
171
217
TAGS : bindata
172
218
TEST_LDAP : 1
219
+ USE_REPO_TEST_DIR : 1
173
220
depends_on :
174
221
- build
175
222
176
223
- name : generate-coverage
177
224
pull : always
178
- image : golang:1.13
225
+ image : golang:1.14
179
226
commands :
180
227
- make coverage
181
228
environment :
@@ -209,8 +256,6 @@ steps:
209
256
- push
210
257
- pull_request
211
258
212
-
213
-
214
259
---
215
260
kind : pipeline
216
261
name : testing-arm64
@@ -219,6 +264,9 @@ platform:
219
264
os : linux
220
265
arch : arm64
221
266
267
+ depends_on :
268
+ - compliance
269
+
222
270
workspace :
223
271
base : /go
224
272
path : src/code.gitea.io/gitea
@@ -248,31 +296,31 @@ steps:
248
296
249
297
- name : build
250
298
pull : always
251
- image : golang:1.13
299
+ image : golang:1.14
252
300
commands :
253
- - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
254
- - make build
301
+ - make backend
255
302
environment :
256
303
GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
257
304
GOSUMDB : sum.golang.org
258
305
TAGS : bindata sqlite sqlite_unlock_notify
259
306
260
307
- name : test-sqlite
261
308
pull : always
262
- image : golang:1.13
309
+ image : golang:1.14
263
310
commands :
264
311
- " curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
265
312
- apt-get install -y git-lfs
266
313
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
267
314
environment :
268
315
GOPROXY : off
269
316
TAGS : bindata
317
+ USE_REPO_TEST_DIR : 1
270
318
depends_on :
271
319
- build
272
320
273
321
- name : test-pgsql
274
322
pull : always
275
- image : golang:1.13
323
+ image : golang:1.14
276
324
commands :
277
325
- " curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
278
326
- apt-get install -y git-lfs
@@ -281,6 +329,7 @@ steps:
281
329
GOPROXY : off
282
330
TAGS : bindata
283
331
TEST_LDAP : 1
332
+ USE_REPO_TEST_DIR : 1
284
333
depends_on :
285
334
- build
286
335
@@ -319,7 +368,7 @@ steps:
319
368
pull : default
320
369
image : alpine:3.11
321
370
commands :
322
- - ./scripts /update-locales.sh
371
+ - ./build /update-locales.sh
323
372
324
373
- name : push
325
374
pull : always
@@ -348,7 +397,7 @@ steps:
348
397
349
398
---
350
399
kind : pipeline
351
- name : release-master
400
+ name : release-latest
352
401
353
402
platform :
354
403
os : linux
@@ -379,14 +428,14 @@ steps:
379
428
380
429
- name : static
381
430
pull : always
382
- image : techknowlogick/xgo:latest
431
+ image : techknowlogick/xgo:go-1.14.x
383
432
commands :
384
433
- apt update && apt -y install curl
385
434
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
386
435
- export PATH=$PATH:$GOPATH/bin
387
436
- make release
388
437
environment :
389
- GOPROXY : off
438
+ GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
390
439
TAGS : bindata sqlite sqlite_unlock_notify
391
440
392
441
- name : gpg-sign
@@ -404,7 +453,7 @@ steps:
404
453
GPGSIGN_PASSPHRASE :
405
454
from_secret : gpgsign_passphrase
406
455
407
- - name : release-branch-release
456
+ - name : release-branch
408
457
pull : always
409
458
image : plugins/s3:1
410
459
settings :
@@ -426,7 +475,7 @@ steps:
426
475
event :
427
476
- push
428
477
429
- - name : release
478
+ - name : release-master
430
479
pull : always
431
480
image : plugins/s3:1
432
481
settings :
@@ -477,14 +526,14 @@ steps:
477
526
478
527
- name : static
479
528
pull : always
480
- image : techknowlogick/xgo:latest
529
+ image : techknowlogick/xgo:go-1.14.x
481
530
commands :
482
531
- apt update && apt -y install curl
483
532
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
484
533
- export PATH=$PATH:$GOPATH/bin
485
534
- make release
486
535
environment :
487
- GOPROXY : off
536
+ GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
488
537
TAGS : bindata sqlite sqlite_unlock_notify
489
538
490
539
- name : gpg-sign
@@ -502,7 +551,7 @@ steps:
502
551
GPGSIGN_PASSPHRASE :
503
552
from_secret : gpgsign_passphrase
504
553
505
- - name : release
554
+ - name : release-tag
506
555
pull : always
507
556
image : plugins/s3:1
508
557
settings :
@@ -537,6 +586,9 @@ platform:
537
586
os : linux
538
587
arch : arm64
539
588
589
+ depends_on :
590
+ - compliance
591
+
540
592
steps :
541
593
- name : build-docs
542
594
pull : always
@@ -742,7 +794,7 @@ depends_on:
742
794
- testing-arm64
743
795
- translations
744
796
- release-version
745
- - release-master
797
+ - release-latest
746
798
- docker-linux-amd64-release
747
799
- docker-linux-arm64-release
748
800
- docker-manifest
0 commit comments