添加ci配置文

This commit is contained in:
jroam
2019-04-11 11:02:43 +08:00
parent 09ceaef3e9
commit 99c964bb4a

View File

@ -11,6 +11,30 @@ branches:
- develop
- test_gfile
env:
- GO111MODULE=on
services:
- mysql
- redis-server
addons:
hosts:
- local
before_install:
- pwd
install:
- cat /etc/hosts
script:
- cd g/os/gfile
- 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)