From 3eb0584a3c8435325923bae360d675162b41e1bc Mon Sep 17 00:00:00 2001 From: matcornic Date: Tue, 28 Mar 2017 18:50:07 +0200 Subject: [PATCH] CI with travis --- .travis.yml | 15 +++++++++++++++ gometalinter.json | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .travis.yml create mode 100644 gometalinter.json 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