mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:50:54 +00:00
fix go1.10.3 orm test failed
This commit is contained in:
parent
81f69f12ab
commit
868fc2a29f
@ -2,7 +2,7 @@ language: go
|
|||||||
|
|
||||||
go:
|
go:
|
||||||
- "1.9.2"
|
- "1.9.2"
|
||||||
- "1.10.2"
|
- "1.10.3"
|
||||||
services:
|
services:
|
||||||
- redis-server
|
- redis-server
|
||||||
- mysql
|
- mysql
|
||||||
|
@ -433,11 +433,8 @@ var (
|
|||||||
dDbBaser dbBaser
|
dDbBaser dbBaser
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
var (
|
||||||
Debug, _ = StrTo(DBARGS.Debug).Bool()
|
helpinfo = `need driver and source!
|
||||||
|
|
||||||
if DBARGS.Driver == "" || DBARGS.Source == "" {
|
|
||||||
fmt.Println(`need driver and source!
|
|
||||||
|
|
||||||
Default DB Drivers.
|
Default DB Drivers.
|
||||||
|
|
||||||
@ -479,7 +476,14 @@ export ORM_DRIVER=tidb
|
|||||||
export ORM_SOURCE='memory://test/test'
|
export ORM_SOURCE='memory://test/test'
|
||||||
go test -v github.com/astaxie/beego/orm
|
go test -v github.com/astaxie/beego/orm
|
||||||
|
|
||||||
`)
|
`
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
Debug, _ = StrTo(DBARGS.Debug).Bool()
|
||||||
|
|
||||||
|
if DBARGS.Driver == "" || DBARGS.Source == "" {
|
||||||
|
fmt.Println(helpinfo)
|
||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user