mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
travis updates
This commit is contained in:
12
.travis.yml
12
.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)
|
||||
|
||||
@ -20,7 +20,7 @@ func init() {
|
||||
Host: "127.0.0.1",
|
||||
Port: "3306",
|
||||
User: "root",
|
||||
Pass: "12345678",
|
||||
Pass: "",
|
||||
Name: "test",
|
||||
Type: "mysql",
|
||||
Role: "master",
|
||||
|
||||
Reference in New Issue
Block a user