travis: add gometalinter tests

This commit is contained in:
Eyal Posener 2017-05-19 00:21:17 +03:00
parent a3e3c5274c
commit 606af1720e
2 changed files with 24 additions and 0 deletions

View File

@ -6,8 +6,11 @@ go:
before_install: before_install:
- go get -u -t ./... - go get -u -t ./...
- go get -u gopkg.in/alecthomas/gometalinter.v1
- gometalinter.v1 --install
script: script:
- gometalinter.v1 --config metalinter.json ./...
- ./test.sh - ./test.sh
after_success: after_success:

21
metalinter.json Normal file
View File

@ -0,0 +1,21 @@
{
"Vendor": true,
"DisableAll": true,
"Enable": [
"gofmt",
"goimports",
"interfacer",
"goconst",
"misspell",
"unconvert",
"gosimple",
"golint",
"structcheck",
"deadcode",
"vet"
],
"Exclude": [
"initTests is unused"
],
"Deadline": "2m"
}