@@ -103,7 +103,18 @@ steps:
103103 commands :
104104 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -schema=xorm -coverprofile=coverage5-1.txt -covermode=atomic"
105105 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -schema=xorm -cache=true -coverprofile=coverage5-2.txt -covermode=atomic"
106- - gocovmerge coverage1-1.txt coverage1-2.txt coverage2-1.txt coverage2-2.txt coverage2.1-1.txt coverage2.1-2.txt coverage3-1.txt coverage3-2.txt coverage4-1.txt coverage4-2.txt coverage5-1.txt coverage5-2.txt > coverage.txt
106+ when :
107+ event :
108+ - push
109+ - pull_request
110+
111+ - name : test-mssql
112+ pull : default
113+ image : golang:1.10
114+ commands :
115+ - " go test -v -race -db=\" mssql\" -conn_str=\" server=mssql;user id=sa;password=yourStrong(!)Password;database=xorm_test\" -coverprofile=coverage6-1.txt -covermode=atomic"
116+ - " go test -v -race -db=\" mssql\" -conn_str=\" server=mssql;user id=sa;password=yourStrong(!)Password;database=xorm_test\" -cache=true -coverprofile=coverage6-2.txt -covermode=atomic"
117+ - gocovmerge coverage1-1.txt coverage1-2.txt coverage2-1.txt coverage2-2.txt coverage2.1-1.txt coverage2.1-2.txt coverage3-1.txt coverage3-2.txt coverage4-1.txt coverage4-2.txt coverage5-1.txt coverage5-2.txt coverage6-1.txt coverage6-2.txt > coverage.txt
107118 when :
108119 event :
109120 - push
@@ -134,6 +145,19 @@ services:
134145 - tag
135146 - pull_request
136147
148+ - name : mssql
149+ pull : default
150+ image : microsoft/mssql-server-linux:latest
151+ environment :
152+ ACCEPT_EULA : Y
153+ SA_PASSWORD : yourStrong(!)Password
154+ MSSQL_PID : Developer
155+ when :
156+ event :
157+ - push
158+ - tag
159+ - pull_request
160+
137161---
138162kind : pipeline
139163name : matrix-2
@@ -167,11 +191,13 @@ steps:
167191- name : build
168192 pull : default
169193 image : golang:1.11
194+ environment :
195+ GO111MODULE : " off"
170196 commands :
171197 - go get -t -d -v ./...
172198 - go get -u xorm.io/core
173199 - go get -u xorm.io/builder
174- - GO111MODULE=off go build -v
200+ - go build -v
175201 when :
176202 event :
177203 - push
@@ -181,9 +207,10 @@ steps:
181207 pull : default
182208 image : golang:1.11
183209 environment :
210+ GO111MODULE : " on"
184211 GOPROXY : " https://goproxy.cn"
185212 commands :
186- - GO111MODULE=on go build -v
213+ - go build -v
187214 when :
188215 event :
189216 - push
@@ -192,8 +219,10 @@ steps:
192219- name : test-sqlite
193220 pull : default
194221 image : golang:1.11
222+ environment :
223+ GO111MODULE : " on"
224+ GOPROXY : " https://goproxy.cn"
195225 commands :
196- - go get -u github.com/wadey/gocovmerge
197226 - " go test -v -race -db=\" sqlite3\" -conn_str=\" ./test.db\" -coverprofile=coverage1-1.txt -covermode=atomic"
198227 - " go test -v -race -db=\" sqlite3\" -conn_str=\" ./test.db\" -cache=true -coverprofile=coverage1-2.txt -covermode=atomic"
199228 when :
@@ -204,6 +233,9 @@ steps:
204233- name : test-mysql
205234 pull : default
206235 image : golang:1.11
236+ environment :
237+ GO111MODULE : " on"
238+ GOPROXY : " https://goproxy.cn"
207239 commands :
208240 - " go test -v -race -db=\" mysql\" -conn_str=\" root:@tcp(mysql)/xorm_test\" -coverprofile=coverage2-1.txt -covermode=atomic"
209241 - " go test -v -race -db=\" mysql\" -conn_str=\" root:@tcp(mysql)/xorm_test\" -cache=true -coverprofile=coverage2-2.txt -covermode=atomic"
@@ -215,6 +247,9 @@ steps:
215247- name : test-mysql-utf8mb4
216248 pull : default
217249 image : golang:1.11
250+ environment :
251+ GO111MODULE : " on"
252+ GOPROXY : " https://goproxy.cn"
218253 commands :
219254 - " go test -v -race -db=\" mysql\" -conn_str=\" root:@tcp(mysql)/xorm_test?charset=utf8mb4\" -coverprofile=coverage2.1-1.txt -covermode=atomic"
220255 - " go test -v -race -db=\" mysql\" -conn_str=\" root:@tcp(mysql)/xorm_test?charset=utf8mb4\" -cache=true -coverprofile=coverage2.1-2.txt -covermode=atomic"
@@ -226,6 +261,9 @@ steps:
226261- name : test-mymysql
227262 pull : default
228263 image : golang:1.11
264+ environment :
265+ GO111MODULE : " on"
266+ GOPROXY : " https://goproxy.cn"
229267 commands :
230268 - " go test -v -race -db=\" mymysql\" -conn_str=\" tcp:mysql:3306*xorm_test/root/\" -coverprofile=coverage3-1.txt -covermode=atomic"
231269 - " go test -v -race -db=\" mymysql\" -conn_str=\" tcp:mysql:3306*xorm_test/root/\" -cache=true -coverprofile=coverage3-2.txt -covermode=atomic"
@@ -237,6 +275,9 @@ steps:
237275- name : test-postgres
238276 pull : default
239277 image : golang:1.11
278+ environment :
279+ GO111MODULE : " on"
280+ GOPROXY : " https://goproxy.cn"
240281 commands :
241282 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -coverprofile=coverage4-1.txt -covermode=atomic"
242283 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -cache=true -coverprofile=coverage4-2.txt -covermode=atomic"
@@ -248,10 +289,28 @@ steps:
248289- name : test-postgres-schema
249290 pull : default
250291 image : golang:1.11
292+ environment :
293+ GO111MODULE : " on"
294+ GOPROXY : " https://goproxy.cn"
251295 commands :
252296 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -schema=xorm -coverprofile=coverage5-1.txt -covermode=atomic"
253297 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -schema=xorm -cache=true -coverprofile=coverage5-2.txt -covermode=atomic"
254- - gocovmerge coverage1-1.txt coverage1-2.txt coverage2-1.txt coverage2-2.txt coverage2.1-1.txt coverage2.1-2.txt coverage3-1.txt coverage3-2.txt coverage4-1.txt coverage4-2.txt coverage5-1.txt coverage5-2.txt > coverage.txt
298+ when :
299+ event :
300+ - push
301+ - pull_request
302+
303+ - name : test-mssql
304+ pull : default
305+ image : golang:1.11
306+ environment :
307+ GO111MODULE : " on"
308+ GOPROXY : " https://goproxy.cn"
309+ commands :
310+ - " go test -v -race -db=\" mssql\" -conn_str=\" server=mssql;user id=sa;password=yourStrong(!)Password;database=xorm_test\" -coverprofile=coverage6-1.txt -covermode=atomic"
311+ - " go test -v -race -db=\" mssql\" -conn_str=\" server=mssql;user id=sa;password=yourStrong(!)Password;database=xorm_test\" -cache=true -coverprofile=coverage6-2.txt -covermode=atomic"
312+ - go get github.com/wadey/gocovmerge
313+ - gocovmerge coverage1-1.txt coverage1-2.txt coverage2-1.txt coverage2-2.txt coverage2.1-1.txt coverage2.1-2.txt coverage3-1.txt coverage3-2.txt coverage4-1.txt coverage4-2.txt coverage5-1.txt coverage5-2.txt coverage6-1.txt coverage6-2.txt > coverage.txt
255314 when :
256315 event :
257316 - push
@@ -282,6 +341,19 @@ services:
282341 - tag
283342 - pull_request
284343
344+ - name : mssql
345+ pull : default
346+ image : microsoft/mssql-server-linux:latest
347+ environment :
348+ ACCEPT_EULA : Y
349+ SA_PASSWORD : yourStrong(!)Password
350+ MSSQL_PID : Developer
351+ when :
352+ event :
353+ - push
354+ - tag
355+ - pull_request
356+
285357---
286358kind : pipeline
287359name : matrix-3
@@ -315,11 +387,13 @@ steps:
315387- name : build
316388 pull : default
317389 image : golang:1.12
390+ environment :
391+ GO111MODULE : " off"
318392 commands :
319393 - go get -t -d -v ./...
320394 - go get -u xorm.io/core
321395 - go get -u xorm.io/builder
322- - GO111MODULE=off go build -v
396+ - go build -v
323397 when :
324398 event :
325399 - push
@@ -329,9 +403,10 @@ steps:
329403 pull : default
330404 image : golang:1.12
331405 environment :
332- GOPROXY : " https://goproxy.cn"
406+ GO111MODULE : " on"
407+ GOPROXY : " https://goproxy.cn"
333408 commands :
334- - GO111MODULE=on go build -v
409+ - go build -v
335410 when :
336411 event :
337412 - push
@@ -340,8 +415,10 @@ steps:
340415- name : test-sqlite
341416 pull : default
342417 image : golang:1.12
418+ environment :
419+ GO111MODULE : " on"
420+ GOPROXY : " https://goproxy.cn"
343421 commands :
344- - go get -u github.com/wadey/gocovmerge
345422 - " go test -v -race -db=\" sqlite3\" -conn_str=\" ./test.db\" -coverprofile=coverage1-1.txt -covermode=atomic"
346423 - " go test -v -race -db=\" sqlite3\" -conn_str=\" ./test.db\" -cache=true -coverprofile=coverage1-2.txt -covermode=atomic"
347424 when :
@@ -352,6 +429,9 @@ steps:
352429- name : test-mysql
353430 pull : default
354431 image : golang:1.12
432+ environment :
433+ GO111MODULE : " on"
434+ GOPROXY : " https://goproxy.cn"
355435 commands :
356436 - " go test -v -race -db=\" mysql\" -conn_str=\" root:@tcp(mysql)/xorm_test\" -coverprofile=coverage2-1.txt -covermode=atomic"
357437 - " go test -v -race -db=\" mysql\" -conn_str=\" root:@tcp(mysql)/xorm_test\" -cache=true -coverprofile=coverage2-2.txt -covermode=atomic"
@@ -363,6 +443,9 @@ steps:
363443- name : test-mysql-utf8mb4
364444 pull : default
365445 image : golang:1.12
446+ environment :
447+ GO111MODULE : " on"
448+ GOPROXY : " https://goproxy.cn"
366449 commands :
367450 - " go test -v -race -db=\" mysql\" -conn_str=\" root:@tcp(mysql)/xorm_test?charset=utf8mb4\" -coverprofile=coverage2.1-1.txt -covermode=atomic"
368451 - " go test -v -race -db=\" mysql\" -conn_str=\" root:@tcp(mysql)/xorm_test?charset=utf8mb4\" -cache=true -coverprofile=coverage2.1-2.txt -covermode=atomic"
@@ -374,6 +457,9 @@ steps:
374457- name : test-mymysql
375458 pull : default
376459 image : golang:1.12
460+ environment :
461+ GO111MODULE : " on"
462+ GOPROXY : " https://goproxy.cn"
377463 commands :
378464 - " go test -v -race -db=\" mymysql\" -conn_str=\" tcp:mysql:3306*xorm_test/root/\" -coverprofile=coverage3-1.txt -covermode=atomic"
379465 - " go test -v -race -db=\" mymysql\" -conn_str=\" tcp:mysql:3306*xorm_test/root/\" -cache=true -coverprofile=coverage3-2.txt -covermode=atomic"
@@ -385,6 +471,9 @@ steps:
385471- name : test-postgres
386472 pull : default
387473 image : golang:1.12
474+ environment :
475+ GO111MODULE : " on"
476+ GOPROXY : " https://goproxy.cn"
388477 commands :
389478 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -coverprofile=coverage4-1.txt -covermode=atomic"
390479 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -cache=true -coverprofile=coverage4-2.txt -covermode=atomic"
@@ -396,10 +485,28 @@ steps:
396485- name : test-postgres-schema
397486 pull : default
398487 image : golang:1.12
488+ environment :
489+ GO111MODULE : " on"
490+ GOPROXY : " https://goproxy.cn"
399491 commands :
400492 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -schema=xorm -coverprofile=coverage5-1.txt -covermode=atomic"
401493 - " go test -v -race -db=\" postgres\" -conn_str=\" postgres://postgres:@pgsql/xorm_test?sslmode=disable\" -schema=xorm -cache=true -coverprofile=coverage5-2.txt -covermode=atomic"
402- - gocovmerge coverage1-1.txt coverage1-2.txt coverage2-1.txt coverage2-2.txt coverage2.1-1.txt coverage2.1-2.txt coverage3-1.txt coverage3-2.txt coverage4-1.txt coverage4-2.txt coverage5-1.txt coverage5-2.txt > coverage.txt
494+ when :
495+ event :
496+ - push
497+ - pull_request
498+
499+ - name : test-mssql
500+ pull : default
501+ image : golang:1.12
502+ environment :
503+ GO111MODULE : " on"
504+ GOPROXY : " https://goproxy.cn"
505+ commands :
506+ - " go test -v -race -db=\" mssql\" -conn_str=\" server=mssql;user id=sa;password=yourStrong(!)Password;database=xorm_test\" -coverprofile=coverage6-1.txt -covermode=atomic"
507+ - " go test -v -race -db=\" mssql\" -conn_str=\" server=mssql;user id=sa;password=yourStrong(!)Password;database=xorm_test\" -cache=true -coverprofile=coverage6-2.txt -covermode=atomic"
508+ - go get -u github.com/wadey/gocovmerge
509+ - gocovmerge coverage1-1.txt coverage1-2.txt coverage2-1.txt coverage2-2.txt coverage2.1-1.txt coverage2.1-2.txt coverage3-1.txt coverage3-2.txt coverage4-1.txt coverage4-2.txt coverage5-1.txt coverage5-2.txt coverage6-1.txt coverage6-2.txt > coverage.txt
403510 when :
404511 event :
405512 - push
@@ -424,6 +531,19 @@ services:
424531 environment :
425532 POSTGRES_DB : xorm_test
426533 POSTGRES_USER : postgres
534+ when :
535+ event :
536+ - push
537+ - tag
538+ - pull_request
539+
540+ - name : mssql
541+ pull : default
542+ image : microsoft/mssql-server-linux:latest
543+ environment :
544+ ACCEPT_EULA : Y
545+ SA_PASSWORD : yourStrong(!)Password
546+ MSSQL_PID : Developer
427547 when :
428548 event :
429549 - push
0 commit comments