2014-06-27 01:23:54 +08:00
|
|
|
language: go
|
2015-08-09 03:38:19 +08:00
|
|
|
sudo: false
|
2014-06-27 01:23:54 +08:00
|
|
|
|
2015-11-03 20:50:29 +08:00
|
|
|
os:
|
|
|
|
- linux
|
2015-11-08 18:31:40 +08:00
|
|
|
|
|
|
|
# - osx
|
2015-11-03 20:50:29 +08:00
|
|
|
|
2014-06-27 01:23:54 +08:00
|
|
|
go:
|
2015-11-08 18:52:35 +08:00
|
|
|
- 1.4.2
|
2016-01-24 01:27:00 +08:00
|
|
|
- 1.5.3
|
2015-11-12 02:18:04 +08:00
|
|
|
|
|
|
|
# - tip
|
2015-11-03 20:50:29 +08:00
|
|
|
|
|
|
|
install:
|
2016-02-16 01:31:11 +08:00
|
|
|
- go get -t ./...
|
2016-01-08 00:34:52 +08:00
|
|
|
- '[[ `go version` =~ go1.[0-4][^0-9] ]] || go get -u github.com/kisielk/errcheck'
|
2015-11-03 20:50:29 +08:00
|
|
|
- go get -u golang.org/x/tools/cmd/goimports
|
2015-11-14 17:20:34 +08:00
|
|
|
- go get -u github.com/golang/lint/golint
|
2014-06-27 01:23:54 +08:00
|
|
|
|
|
|
|
script:
|
2015-11-14 17:20:34 +08:00
|
|
|
- make check
|
2016-02-27 01:01:19 +08:00
|
|
|
- go test ./...
|
|
|
|
- go test -cpu=2 -race ./...
|