mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 03:07:45 +08:00
36 lines
460 B
YAML
36 lines
460 B
YAML
language: go
|
|
|
|
go:
|
|
- "1.11.x"
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- develop
|
|
|
|
env:
|
|
- 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 -v ./... -race -coverprofile=coverage.txt -covermode=atomic
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
|
|