1
mirror of https://github.com/rclone/rclone synced 2024-11-30 09:10:05 +01:00

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