diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..94f5e86 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: go + +go: + - 1.6 + - 1.7 + - 1.8 + - master + +install: +- go get -u github.com/alecthomas/gometalinter +- gometalinter -u -i -f + +script: +- go test ./... +- gometalinter --config=./gometalinter.json ./... \ No newline at end of file diff --git a/gometalinter.json b/gometalinter.json new file mode 100644 index 0000000..80d6aaf --- /dev/null +++ b/gometalinter.json @@ -0,0 +1,17 @@ +{ + "DisableAll": true, + "Enable": [ + "unused", + "vet", + "vetshadow", + "deadcode", + "gofmt", + "golint", + "ineffassign", + "goconst", + "gosimple", + "staticcheck", + "misspell" + ], + "Test": true +} \ No newline at end of file