travis updates

This commit is contained in:
John 2018-12-17 13:57:15 +08:00
parent 397b0a3e7e
commit 5d32ad6bc4
2 changed files with 9 additions and 5 deletions

View File

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

View File

@ -20,7 +20,7 @@ func init() {
Host: "127.0.0.1",
Port: "3306",
User: "root",
Pass: "12345678",
Pass: "",
Name: "test",
Type: "mysql",
Role: "master",