add mysql & postgres tests on circle ci
This commit is contained in:
parent
4a2a924369
commit
4bd47ece79
|
@ -22,6 +22,8 @@ test:
|
||||||
override:
|
override:
|
||||||
# './...' is a relative pattern which means all subdirectories
|
# './...' is a relative pattern which means all subdirectories
|
||||||
- go test -v -race
|
- 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 && ./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 && ./mysql.sh
|
||||||
- cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./postgres.sh
|
- cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./postgres.sh
|
|
@ -77,7 +77,7 @@ func TestGetBytes(t *testing.T) {
|
||||||
assert.NoError(t, prepareEngine())
|
assert.NoError(t, prepareEngine())
|
||||||
|
|
||||||
type Varbinary struct {
|
type Varbinary struct {
|
||||||
Data []byte `xorm:"VARBINARY"`
|
Data []byte `xorm:"VARBINARY(250)"`
|
||||||
}
|
}
|
||||||
|
|
||||||
err := testEngine.Sync2(new(Varbinary))
|
err := testEngine.Sync2(new(Varbinary))
|
||||||
|
|
Loading…
Reference in New Issue