Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Extend CI tests to include formatting checks.

klauspostb85ddc4e4fcc
diff --git a/.travis.yml b/.travis.yml
index 20b58cc42..52bf47442 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,12 +1,24 @@
language: go
sudo: false
+os:
+ - linux
+ - osx
+
go:
- 1.3.3
- 1.4.2
- 1.5
+ - tip
+
+install:
+ - go get ./...
+ - go get -u github.com/golang/lint/golint
+ - go get -u golang.org/x/tools/cmd/goimports
script:
- - go get ./...
+ - go vet ./...
+ - diff <(goimports -d .) <(printf "")
+ - diff <(golint ./...) <(printf "")
- go test -v ./...
- go test -cpu=2 -race -v ./...
diff --git a/fs/config.go b/fs/config.go
index 36b87bf2c..171f7e64b 100644
--- a/fs/config.go
+++ b/fs/config.go
@@ -18,6 +18,7 @@ import (
"time"
"crypto/tls"
+
"github.com/Unknwon/goconfig"
"github.com/mreiferson/go-httpclient"
"github.com/spf13/pflag"