mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-09-20 18:09:45 +00:00
Our policy is to only ensure the code compiles for the latest Go release minus one version. Since Go 1.4 has now been released, this commit updates TravisCI to remove Go 1.2 from the build matrix and add Go 1.3. Also, go vet changed locations in between Go 1.3 and Go 1.4, so a check has been added to download the appropriate version based on which version of Go is running the integration tests. Finally, the previous removed Go tip entry in the build matrix has been reintroduced since it will now work again.
15 lines
410 B
YAML
15 lines
410 B
YAML
language: go
|
|
go:
|
|
- 1.3
|
|
- release
|
|
- tip
|
|
install:
|
|
- go get -d -t -v ./...
|
|
- if [ "$TRAVIS_GO_VERSION" = "1.3" ]; then go get -v code.google.com/p/go.tools/cmd/vet else go get -v golang.org/x/tools/cmd/vet fi
|
|
- go get -v github.com/GeertJohan/fgt
|
|
- go get -v github.com/golang/lint/golint
|
|
script:
|
|
- export PATH=$PATH:$HOME/gopath/bin
|
|
- go vet
|
|
- fgt golint -min_confidence=0.9 .
|
|
- go test -v
|