forked from TrueCloudLab/rclone
Ignore golint errors that can't be fixed
Stop duplicating checkers in .travis.yml - use Makefile as definitive source
This commit is contained in:
parent
fcea3777c0
commit
46696865fd
2 changed files with 5 additions and 6 deletions
|
@ -15,12 +15,11 @@ go:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get ./...
|
- go get ./...
|
||||||
- go get -u github.com/golang/lint/golint
|
- 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
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go vet ./...
|
- make check
|
||||||
- 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 ./...
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -14,8 +14,8 @@ test: rclone
|
||||||
check: rclone
|
check: rclone
|
||||||
go vet ./...
|
go vet ./...
|
||||||
errcheck ./...
|
errcheck ./...
|
||||||
golint ./...
|
goimports -d . | grep . ; test $$? -eq 1
|
||||||
diff <(goimports -d .) <(printf "")
|
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