mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 03:07:45 +08:00
40 lines
444 B
YAML
40 lines
444 B
YAML
language: go
|
|
|
|
go:
|
|
- "1.10.x"
|
|
- "1.11.x"
|
|
- "1.12.x"
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- develop
|
|
|
|
env:
|
|
- GO111MODULE=on
|
|
|
|
services:
|
|
- mysql
|
|
- redis-server
|
|
|
|
addons:
|
|
hosts:
|
|
- local
|
|
|
|
before_install:
|
|
- pwd
|
|
|
|
install:
|
|
- cat /etc/hosts
|
|
|
|
script:
|
|
- cd g
|
|
- GOARCH=386 go test -v ./...
|
|
- GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
|
|