forked from TrueCloudLab/rclone
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
2 changed files with 4 additions and 4 deletions
|
@ -9,14 +9,14 @@ os:
|
||||||
go:
|
go:
|
||||||
- 1.4.2
|
- 1.4.2
|
||||||
- 1.5.3
|
- 1.5.3
|
||||||
|
- 1.6
|
||||||
# - tip
|
- tip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get -t ./...
|
- go get -t ./...
|
||||||
- '[[ `go version` =~ go1.[0-4][^0-9] ]] || go get -u github.com/kisielk/errcheck'
|
- '[[ `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 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:
|
script:
|
||||||
- make check
|
- make check
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@ check: rclone
|
||||||
go vet ./...
|
go vet ./...
|
||||||
[[ `go version` =~ go1.[0-4][^0-9] ]] || errcheck ./...
|
[[ `go version` =~ go1.[0-4][^0-9] ]] || errcheck ./...
|
||||||
goimports -d . | grep . ; test $$? -eq 1
|
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
|
doc: rclone.1 MANUAL.html MANUAL.txt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue