Update Travis CI

- Only use golint if version is > Go 1.4
- Add Go 1.6 and tip as test targets.
This commit is contained in:
Klaus Post 2016-03-23 15:02:01 +01:00 committed by Nick Craig-Wood
parent f8101771c9
commit 40dc575aa4
2 changed files with 4 additions and 4 deletions

View file

@ -9,14 +9,14 @@ os:
go:
- 1.4.2
- 1.5.3
# - tip
- 1.6
- tip
install:
- go get -t ./...
- '[[ `go version` =~ go1.[0-4][^0-9] ]] || go get -u github.com/kisielk/errcheck'
- go get -u golang.org/x/tools/cmd/goimports
- go get -u github.com/golang/lint/golint
- '[[ `go version` =~ go1.[0-4][^0-9] ]] || go get -u github.com/golang/lint/golint'
script:
- make check

View file

@ -15,7 +15,7 @@ check: rclone
go vet ./...
[[ `go version` =~ go1.[0-4][^0-9] ]] || errcheck ./...
goimports -d . | grep . ; test $$? -eq 1
golint ./... | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1
[[ `go version` =~ go1.[0-4][^0-9] ]] || { golint ./... | grep -E -v '(StorageUrl|CdnUrl)' ; test $$? -eq 1;}
doc: rclone.1 MANUAL.html MANUAL.txt