mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +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:
parent
f8101771c9
commit
40dc575aa4
@ -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
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user