Skip to content

Commit 1142632

Browse files
techknowlogickappleboy
authored andcommitted
Use go 1.12 for tests and deprecate go 1.9 (#6186)
Blocked until 1.12 docker images are released
1 parent 7afe81f commit 1142632

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.drone.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ pipeline:
5656
event: [ push, tag, pull_request ]
5757

5858
build-without-gcc:
59-
image: golang:1.9
59+
image: golang:1.10 # this step is kept as the lowest version of golang that we support
6060
pull: true
6161
commands:
6262
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
6363
when:
6464
event: [ push, tag, pull_request ]
6565

6666
build:
67-
image: golang:1.11
67+
image: golang:1.12
6868
pull: true
6969
environment:
7070
TAGS: bindata sqlite sqlite_unlock_notify
@@ -82,8 +82,8 @@ pipeline:
8282
when:
8383
event: [ push, tag, pull_request ]
8484

85-
test:
86-
image: golang:1.11
85+
unit-test:
86+
image: golang:1.12
8787
pull: true
8888
group: test
8989
environment:
@@ -94,8 +94,8 @@ pipeline:
9494
event: [ push, pull_request ]
9595
branch: [ master ]
9696

97-
test:
98-
image: golang:1.11
97+
release-test:
98+
image: golang:1.12
9999
pull: true
100100
group: test
101101
environment:
@@ -106,8 +106,8 @@ pipeline:
106106
event: [ push, pull_request ]
107107
branch: [ release/* ]
108108

109-
test:
110-
image: golang:1.11
109+
tag-test:
110+
image: golang:1.12
111111
pull: true
112112
group: test
113113
environment:
@@ -118,7 +118,7 @@ pipeline:
118118
event: [ tag ]
119119

120120
test-sqlite:
121-
image: golang:1.11
121+
image: golang:1.12
122122
pull: true
123123
group: test
124124
environment:
@@ -133,7 +133,7 @@ pipeline:
133133
event: [ push, tag, pull_request ]
134134

135135
test-mysql:
136-
image: golang:1.11
136+
image: golang:1.12
137137
pull: true
138138
group: test
139139
environment:
@@ -148,8 +148,8 @@ pipeline:
148148
event: [ push, pull_request ]
149149
branch: [ master ]
150150

151-
test-mysql:
152-
image: golang:1.11
151+
tag-test-mysql:
152+
image: golang:1.12
153153
pull: true
154154
group: test
155155
environment:
@@ -165,7 +165,7 @@ pipeline:
165165
event: [ tag ]
166166

167167
test-pgsql:
168-
image: golang:1.11
168+
image: golang:1.12
169169
pull: true
170170
group: test
171171
environment:
@@ -181,7 +181,7 @@ pipeline:
181181
event: [ push, tag, pull_request ]
182182

183183
test-mssql:
184-
image: golang:1.11
184+
image: golang:1.12
185185
pull: true
186186
group: test
187187
environment:
@@ -196,7 +196,7 @@ pipeline:
196196
event: [ push, tag, pull_request ]
197197

198198
bench-sqlite:
199-
image: golang:1.11
199+
image: golang:1.12
200200
pull: true
201201
group: bench
202202
commands:
@@ -205,7 +205,7 @@ pipeline:
205205
event: [ tag ]
206206

207207
bench-mysql:
208-
image: golang:1.11
208+
image: golang:1.12
209209
pull: true
210210
group: bench
211211
commands:
@@ -214,7 +214,7 @@ pipeline:
214214
event: [ tag ]
215215

216216
bench-mssql:
217-
image: golang:1.11
217+
image: golang:1.12
218218
pull: true
219219
group: bench
220220
commands:
@@ -223,7 +223,7 @@ pipeline:
223223
event: [ tag ]
224224

225225
bench-pgsql:
226-
image: golang:1.11
226+
image: golang:1.12
227227
pull: true
228228
group: bench
229229
commands:
@@ -232,7 +232,7 @@ pipeline:
232232
event: [ tag ]
233233

234234
generate-coverage:
235-
image: golang:1.11
235+
image: golang:1.12
236236
pull: true
237237
environment:
238238
TAGS: bindata
@@ -290,7 +290,7 @@ pipeline:
290290
when:
291291
event: [ pull_request ]
292292

293-
docker:
293+
release-docker:
294294
image: plugins/docker:17.12
295295
pull: true
296296
secrets: [ docker_username, docker_password ]
@@ -323,7 +323,7 @@ pipeline:
323323
when:
324324
event: [ push, tag ]
325325

326-
release:
326+
tag-release:
327327
image: plugins/s3:1
328328
pull: true
329329
secrets: [ aws_access_key_id, aws_secret_access_key ]
@@ -337,7 +337,7 @@ pipeline:
337337
when:
338338
event: [ tag ]
339339

340-
release:
340+
release-branch-release:
341341
image: plugins/s3:1
342342
pull: true
343343
secrets: [ aws_access_key_id, aws_secret_access_key ]

0 commit comments

Comments
 (0)