For 3rd parties building binary packages, and for build consistency in general, it is very helpful to have the same set of dependencies at any time the product is built. See [tools/godep](https://github.com/tools/godep) for further details.
28 lines
417 B
YAML
28 lines
417 B
YAML
language: go
|
|
|
|
sudo: false
|
|
dist: trusty
|
|
|
|
go:
|
|
- 1.x
|
|
- 1.2.x
|
|
- 1.3.x
|
|
- 1.4.x
|
|
- 1.5.x
|
|
- 1.6.x
|
|
- 1.7.x
|
|
- 1.8.x
|
|
- master
|
|
|
|
before_install:
|
|
- find "${GOPATH%%:*}" -name '*.a' -delete
|
|
- rm -rf "${GOPATH%%:*}/src/golang.org"
|
|
- go get golang.org/x/tools/cover
|
|
- go get golang.org/x/tools/cmd/cover
|
|
|
|
script:
|
|
- go test -race -coverprofile=coverage.txt -covermode=atomic
|
|
|
|
after_success:
|
|
- bash <(curl -s "https://codecov.io/bash")
|