diff --git a/.travis.yml b/.travis.yml index 2ff92a309..16ee774c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,20 +9,24 @@ branches: - develop env: -- GITEE_GF=$GOPATH/src/gitee.com/johng/gf -- GO111MODULE=on +- GITEE_GF=$GOPATH/src/gitee.com/johng/gf GO111MODULE=on + +services: +- mysql before_install: - pwd +- cd $GITEE_GF install: +- pwd - mkdir -p $GITEE_GF - cp * $GITEE_GF -R - cd $GITEE_GF script: -- cd $GITEE_GF/g && go test -v ./... -- cd $GITEE_GF/g && go test -race -coverprofile=coverage.txt -covermode=atomic +# - cd $GITEE_GF/g && go test -v ./... +- cd $GITEE_GF/g && go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/g/database/gdb/gdb_unit_1_test.go b/g/database/gdb/gdb_unit_1_test.go index 1755bf63b..365671e85 100644 --- a/g/database/gdb/gdb_unit_1_test.go +++ b/g/database/gdb/gdb_unit_1_test.go @@ -20,7 +20,7 @@ func init() { Host: "127.0.0.1", Port: "3306", User: "root", - Pass: "12345678", + Pass: "", Name: "test", Type: "mysql", Role: "master",