add mysql & postgres tests on circle ci

This commit is contained in:
Lunny Xiao 2017-05-17 16:16:39 +08:00
parent 4a2a924369
commit 4bd47ece79
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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))