gf/.travis.yml

39 lines
411 B
YAML
Raw Normal View History

2018-12-17 13:02:18 +08:00
language: go
go:
2019-03-03 00:14:20 +08:00
- "1.11.x"
- "1.12.x"
2018-12-17 13:02:18 +08:00
branches:
only:
- master
2018-12-17 13:02:55 +08:00
- develop
2018-12-17 13:02:18 +08:00
2018-12-17 13:46:06 +08:00
env:
2019-04-15 15:41:51 +08:00
- GO111MODULE=on
2018-12-17 13:57:15 +08:00
services:
2019-04-15 15:41:51 +08:00
- mysql
- redis-server
2018-12-17 13:24:53 +08:00
2019-03-08 08:48:53 +08:00
addons:
hosts:
2019-04-15 15:41:51 +08:00
- local
2019-03-08 08:48:53 +08:00
2018-12-17 13:24:53 +08:00
before_install:
2019-04-15 15:41:51 +08:00
- pwd
2018-12-17 13:50:17 +08:00
install:
2019-04-15 15:41:51 +08:00
- cat /etc/hosts
2018-12-17 13:24:53 +08:00
2018-12-17 13:02:18 +08:00
script:
2019-04-15 15:41:51 +08:00
- cd g
- GOARCH=386 go test -v ./...
- GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
2019-01-17 16:06:56 +08:00
2018-12-17 13:24:53 +08:00
after_success:
2019-04-15 15:41:51 +08:00
- bash <(curl -s https://codecov.io/bash)
2018-12-17 13:02:18 +08:00