From 4bd47ece790e98e726e71960afdae6d41b38e49b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 17 May 2017 16:16:39 +0800 Subject: [PATCH] add mysql & postgres tests on circle ci --- circle.yml | 2 ++ types_test.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 5c4ab0b0..27f7f98a 100644 --- a/circle.yml +++ b/circle.yml @@ -22,6 +22,8 @@ test: override: # './...' is a relative pattern which means all subdirectories - go test -v -race + - go test -db=mysql -conn_str="root:@/xorm_test" + - go test -db=postgres -conn_str="dbname=xorm_test sslmode=disable" - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./sqlite3.sh - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./mysql.sh - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./postgres.sh \ No newline at end of file diff --git a/types_test.go b/types_test.go index f5a51679..900dac90 100644 --- a/types_test.go +++ b/types_test.go @@ -77,7 +77,7 @@ func TestGetBytes(t *testing.T) { assert.NoError(t, prepareEngine()) type Varbinary struct { - Data []byte `xorm:"VARBINARY"` + Data []byte `xorm:"VARBINARY(250)"` } err := testEngine.Sync2(new(Varbinary))