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
|
|
|
|
- osx
|
|
|
|
|
2014-06-27 01:23:54 +08:00
|
|
|
go:
|
2014-12-13 03:27:14 +08:00
|
|
|
- 1.3.3
|
2015-08-30 01:58:48 +08:00
|
|
|
- 1.4.2
|
|
|
|
- 1.5
|
2015-11-03 20:50:29 +08:00
|
|
|
- tip
|
|
|
|
|
|
|
|
install:
|
|
|
|
- go get ./...
|
|
|
|
- go get -u github.com/golang/lint/golint
|
|
|
|
- go get -u golang.org/x/tools/cmd/goimports
|
2014-06-27 01:23:54 +08:00
|
|
|
|
|
|
|
script:
|
2015-11-03 20:50:29 +08:00
|
|
|
- go vet ./...
|
|
|
|
- diff <(goimports -d .) <(printf "")
|
|
|
|
- diff <(golint ./...) <(printf "")
|
2014-06-27 01:23:54 +08:00
|
|
|
- go test -v ./...
|
2015-09-16 18:26:28 +08:00
|
|
|
- go test -cpu=2 -race -v ./...
|