66
66
image : golang:1.11 # this step is kept as the lowest version of golang that we support
67
67
environment :
68
68
GO111MODULE : on
69
+ GOPROXY : off
69
70
commands :
70
71
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
71
72
74
75
image : golang:1.12
75
76
environment :
76
77
GO111MODULE : on
78
+ GOPROXY : off
77
79
GOOS : linux
78
80
GOARCH : 386
79
81
commands :
92
94
- make test-vendor
93
95
- make build
94
96
environment :
97
+ GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
95
98
TAGS : bindata sqlite sqlite_unlock_notify
96
99
97
100
- name : unit-test
@@ -100,6 +103,7 @@ steps:
100
103
commands :
101
104
- make unit-test-coverage
102
105
environment :
106
+ GOPROXY : off
103
107
TAGS : bindata sqlite sqlite_unlock_notify
104
108
depends_on :
105
109
- build
@@ -116,6 +120,7 @@ steps:
116
120
commands :
117
121
- make test
118
122
environment :
123
+ GOPROXY : off
119
124
TAGS : bindata sqlite sqlite_unlock_notify
120
125
depends_on :
121
126
- build
@@ -143,6 +148,7 @@ steps:
143
148
commands :
144
149
- make test
145
150
environment :
151
+ GOPROXY : off
146
152
TAGS : bindata
147
153
depends_on :
148
154
- tag-pre-condition
@@ -159,6 +165,7 @@ steps:
159
165
- timeout -s ABRT 20m make test-sqlite-migration
160
166
- timeout -s ABRT 20m make test-sqlite
161
167
environment :
168
+ GOPROXY : off
162
169
TAGS : bindata
163
170
depends_on :
164
171
- build
@@ -172,6 +179,7 @@ steps:
172
179
- make test-mysql-migration
173
180
- make integration-test-coverage
174
181
environment :
182
+ GOPROXY : off
175
183
TAGS : bindata
176
184
TEST_LDAP : 1
177
185
depends_on :
@@ -192,6 +200,7 @@ steps:
192
200
- timeout -s ABRT 20m make test-mysql-migration
193
201
- timeout -s ABRT 20m make test-mysql
194
202
environment :
203
+ GOPROXY : off
195
204
TAGS : bindata
196
205
TEST_LDAP : 1
197
206
depends_on :
@@ -209,6 +218,7 @@ steps:
209
218
- timeout -s ABRT 20m make test-mysql8-migration
210
219
- timeout -s ABRT 20m make test-mysql8
211
220
environment :
221
+ GOPROXY : off
212
222
TAGS : bindata
213
223
TEST_LDAP : 1
214
224
depends_on :
@@ -223,6 +233,7 @@ steps:
223
233
- timeout -s ABRT 20m make test-pgsql-migration
224
234
- timeout -s ABRT 20m make test-pgsql
225
235
environment :
236
+ GOPROXY : off
226
237
TAGS : bindata
227
238
TEST_LDAP : 1
228
239
depends_on :
@@ -237,6 +248,7 @@ steps:
237
248
- make test-mssql-migration
238
249
- make test-mssql
239
250
environment :
251
+ GOPROXY : off
240
252
TAGS : bindata
241
253
TEST_LDAP : 1
242
254
depends_on :
@@ -248,6 +260,7 @@ steps:
248
260
commands :
249
261
- make coverage
250
262
environment :
263
+ GOPROXY : off
251
264
TAGS : bindata
252
265
depends_on :
253
266
- unit-test
@@ -380,6 +393,7 @@ steps:
380
393
- make generate
381
394
- make release
382
395
environment :
396
+ GOPROXY : off
383
397
TAGS : bindata sqlite sqlite_unlock_notify
384
398
385
399
- name : gpg-sign
@@ -481,6 +495,7 @@ steps:
481
495
- make generate
482
496
- make release
483
497
environment :
498
+ GOPROXY : off
484
499
TAGS : bindata sqlite sqlite_unlock_notify
485
500
486
501
- name : gpg-sign
@@ -607,6 +622,8 @@ steps:
607
622
dry_run : true
608
623
repo : gitea/gitea
609
624
tags : linux-amd64
625
+ build_args :
626
+ - GOPROXY=off
610
627
when :
611
628
event :
612
629
- pull_request
@@ -618,6 +635,8 @@ steps:
618
635
auto_tag : true
619
636
auto_tag_suffix : linux-amd64
620
637
repo : gitea/gitea
638
+ build_args :
639
+ - GOPROXY=off
621
640
password :
622
641
from_secret : docker_password
623
642
username :
@@ -668,6 +687,8 @@ steps:
668
687
dry_run : true
669
688
repo : gitea/gitea
670
689
tags : linux-arm64
690
+ build_args :
691
+ - GOPROXY=off
671
692
when :
672
693
event :
673
694
- pull_request
@@ -679,6 +700,8 @@ steps:
679
700
auto_tag : true
680
701
auto_tag_suffix : linux-arm64
681
702
repo : gitea/gitea
703
+ build_args :
704
+ - GOPROXY=off
682
705
password :
683
706
from_secret : docker_password
684
707
username :
0 commit comments