forked from TrueCloudLab/rclone
Extend CI tests to include formatting checks.
CI tests now tests 'go vet', 'go fmt' (via goimports) and golint. Adds Travis experimental OSX support.
This commit is contained in:
parent
e4a9e27a55
commit
b85ddc4e4f
2 changed files with 14 additions and 1 deletions
14
.travis.yml
14
.travis.yml
|
@ -1,12 +1,24 @@
|
||||||
language: go
|
language: go
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.3.3
|
- 1.3.3
|
||||||
- 1.4.2
|
- 1.4.2
|
||||||
- 1.5
|
- 1.5
|
||||||
|
- tip
|
||||||
|
|
||||||
|
install:
|
||||||
|
- go get ./...
|
||||||
|
- go get -u github.com/golang/lint/golint
|
||||||
|
- go get -u golang.org/x/tools/cmd/goimports
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go get ./...
|
- go vet ./...
|
||||||
|
- diff <(goimports -d .) <(printf "")
|
||||||
|
- diff <(golint ./...) <(printf "")
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
- go test -cpu=2 -race -v ./...
|
- go test -cpu=2 -race -v ./...
|
||||||
|
|
|
@ -18,6 +18,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
|
||||||
"github.com/Unknwon/goconfig"
|
"github.com/Unknwon/goconfig"
|
||||||
"github.com/mreiferson/go-httpclient"
|
"github.com/mreiferson/go-httpclient"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
Loading…
Reference in a new issue