mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 04:07:47 +08:00
travis updates
This commit is contained in:
parent
397b0a3e7e
commit
5d32ad6bc4
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",
|
||||
|
Loading…
Reference in New Issue
Block a user