From 7271b57136122c4e1ba0fa3a540126e22aa55f42 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 26 Mar 2016 14:26:12 -0600 Subject: [PATCH] Add golint and ineffassign to CI scripts golint is not part of the tests since our Markdown dependency defines an interface that is not lint-compliant (unfortunately). See https://github.com/russross/blackfriday/issues/240 --- .travis.yml | 6 ++++++ appveyor.yml | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e2b0430a..a292fca5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,8 +18,14 @@ install: - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash dist/gitcookie.sh; fi - go get -t ./... - go get golang.org/x/tools/cmd/vet + - go get github.com/golang/lint/golint + - go get github.com/gordonklaus/ineffassign script: - "[ -z \"$(find -name \"*.go\" | xargs gofmt -s -l)\" ] || exit 1" + - ineffassign . - go vet ./... - go test ./... + +after_script: + - golint ./... diff --git a/appveyor.yml b/appveyor.yml index b370a113..244b9807 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,13 +14,20 @@ install: - 7z x go1.6.windows-amd64.zip -y -oC:\ > NUL - go version - go env - - go get golang.org/x/tools/cmd/vet - go get -t ./... + - go get golang.org/x/tools/cmd/vet + - go get github.com/golang/lint/golint + - go get github.com/gordonklaus/ineffassign + - set PATH=%GOPATH%\bin;%PATH% build: off test_script: - go vet ./... - go test ./... + - ineffassign . + +after_test: + - golint ./... deploy: off